# coding: utf-8

import requests
from common.constant import host

headers = {}

interfaces = [{
    "creator": "999999999",
    "queryFields": [{
        "field": "action_meta_data",
        "alias": "操作详情元数据",
        "dim": "action_meta_data",
        "type": "OBJECT"
    }, {
        "field": "action_type",
        "alias": "操作类型",
        "dim": "action_type",
        "type": "STRING"
    }, {
        "field": "action_label",
        "alias": "操作标签",
        "dim": "action_label",
        "type": "STRING"
    }, {
        "field": "action_name",
        "alias": "操作名称",
        "dim": "action_name",
        "type": "STRING"
    }, {
        "field": "exec_data",
        "alias": "执行返回数据",
        "dim": "exec_data",
        "type": "OBJECT"
    }, {
        "field": "create_time",
        "alias": "执行返回数据",
        "dim": "create_time",
        "type": "LONG"
    }, {
        "field": "processor",
        "alias": "操作人",
        "dim": "processor",
        "type": "OBJECT"
    }, {
        "field": "params",
        "alias": "操作参数",
        "dim": "action_meta_data.params",
        "type": "OBJECT"
    }, {
        "field": "start_time",
        "alias": "开始时间",
        "dim": "start_time",
        "type": "LONG"
    }, {
        "field": "end_time",
        "alias": "结束时间",
        "dim": "end_time",
        "type": "LONG"
    }],
    "requestMethod": "POST",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "{{query}}",
    "dataSourceTable": "sreworks_action",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "action",
    "alias": "操作明细",
    "responseParams": ["action_meta_data", "action_type", "action_label", "action_name", "exec_data", "create_time", "processor", "params", "start_time", "end_time"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "query",
        "alias": "查询条件",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": [{
        "dim": "create_time",
        "order": "desc"
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "id",
        "alias": "团队ID",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "name",
        "alias": "团队名称",
        "dim": "name",
        "type": "STRING"
    }, {
        "field": "avatar",
        "alias": "头像",
        "dim": "avatar",
        "type": "STRING"
    }, {
        "field": "visible_scope",
        "alias": "可见属性",
        "dim": "visible_scope",
        "type": "STRING"
    }, {
        "field": "creator",
        "alias": "创建人",
        "dim": "creator",
        "type": "STRING"
    }, {
        "field": "gmt_create",
        "alias": "创建时间",
        "dim": "gmt_create",
        "type": "DATE"
    }, {
        "field": "last_modifier",
        "alias": "最近修改人",
        "dim": "last_modifier",
        "type": "STRING"
    }, {
        "field": "gmt_modified",
        "alias": "最近修改时间",
        "dim": "gmt_modified",
        "type": "DATE"
    }, {
        "field": "description",
        "alias": "说明",
        "dim": "description",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "ds:{{ds}} AND {{query}}",
    "dataSourceTable": "ods_team",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "team",
    "alias": "团队明细(数仓)",
    "responseParams": ["id", "name", "avatar", "visible_scope", "creator", "gmt_create", "last_modifier", "gmt_modified", "description"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "defaultValue": "*",
        "name": "query",
        "alias": "查询条件",
        "type": "STRING",
        "required": False
    }, {
        "name": "ds",
        "alias": "时间分区",
        "type": "STRING",
        "required": True
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "id",
        "alias": "应用ID",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "name",
        "alias": "应用名称",
        "dim": "name",
        "type": "STRING"
    }, {
        "field": "labels",
        "alias": "应用标签",
        "dim": "labels",
        "type": "OBJECT"
    }, {
        "field": "detail",
        "alias": "应用详情",
        "dim": "detail",
        "type": "OBJECT"
    }, {
        "field": "team_id",
        "alias": "归属应用ID",
        "dim": "team_id",
        "type": "OBJECT"
    }, {
        "field": "creator",
        "alias": "创建人",
        "dim": "creator",
        "type": "STRING"
    }, {
        "field": "last_modifier",
        "alias": "最近修改人",
        "dim": "last_modifier",
        "type": "STRING"
    }, {
        "field": "gmt_create",
        "alias": "创建时间",
        "dim": "gmt_create",
        "type": "DATE"
    }, {
        "field": "gmt_modified",
        "alias": "最近修改时间",
        "dim": "gmt_modified",
        "type": "DATE"
    }, {
        "field": "display",
        "alias": "可见",
        "dim": "display",
        "type": "BOOLEAN"
    }, {
        "field": "annotations",
        "alias": "应用注解",
        "dim": "annotations",
        "type": "OBJECT"
    }, {
        "field": "description",
        "alias": "应用描述",
        "dim": "description",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "ds:{{ds}} AND {{query}}",
    "dataSourceTable": "ods_app",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app",
    "alias": "应用明细(数仓)",
    "responseParams": ["id", "name", "labels", "detail", "team_id", "creator", "last_modifier", "gmt_create", "gmt_modified", "display", "annotations", "description"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "defaultValue": "*",
        "name": "query",
        "alias": "查询条件",
        "type": "STRING",
        "required": False
    }, {
        "name": "ds",
        "alias": "时间分区",
        "type": "STRING",
        "required": True
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "id",
        "alias": "集群ID",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "name",
        "alias": "集群名称",
        "dim": "name",
        "type": "STRING"
    }, {
        "field": "cluster_name",
        "alias": "集群code",
        "dim": "cluster_name",
        "type": "STRING"
    }, {
        "field": "account_id",
        "alias": "关联账户",
        "dim": "account_id",
        "type": "STRING"
    }, {
        "field": "team_id",
        "alias": "归属团队ID",
        "dim": "team_id",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "ds:{{ds}} AND {{query}}",
    "dataSourceTable": "ods_cluster",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "cluster",
    "alias": "集群明细(数仓)",
    "responseParams": ["id", "name", "cluster_name", "account_id", "team_id"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "ds",
        "alias": "时间分区",
        "type": "STRING",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "query",
        "alias": "查询条件",
        "type": "STRING",
        "required": False
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "id",
        "alias": "应用ID",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "name",
        "alias": "应用名称",
        "dim": "name",
        "type": "STRING"
    }, {
        "field": "team_id",
        "alias": "归属团队",
        "dim": "team_id",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "1=1",
    "dataSourceTable": "app",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "2",
    "name": "sreworks_app",
    "alias": "应用明细",
    "responseParams": ["id", "name", "team_id"],
    "contentType": "application/json",
    "dataSourceType": "mysql",
    "requestParams": [],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "cpuPct",
        "alias": "使用率",
        "dim": "host.cpu.pct",
        "type": "FLOAT",
        "operator": "max"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:system AND metricset.name:cpu AND host.name:{{hostname}}",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "node_cpu_usage_1d",
    "alias": "节点CPU使用率(天)",
    "responseParams": ["timestamp", "hostname", "cpuPct"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "defaultValue": "",
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "hostname",
        "alias": "节点名称",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [{
        "field": "timestamp",
        "granularity": "1d",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG",
        "operator": "date_histogram"
    }, {
        "field": "hostname",
        "alias": "节点名称",
        "dim": "host.name",
        "type": "STRING",
        "operator": "terms"
    }],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "name",
        "alias": "资源实例名称",
        "dim": "kubernetes.event.involved_object.name",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "资源空间",
        "dim": "kubernetes.event.metadata.namespace",
        "type": "STRING"
    }, {
        "field": "gmtOccur",
        "alias": "发生时间",
        "dim": "kubernetes.event.timestamp.last_occurrence",
        "type": "LONG"
    }, {
        "field": "type",
        "alias": "类型",
        "dim": "kubernetes.event.type",
        "type": "STRING"
    }, {
        "field": "reason",
        "alias": "原因",
        "dim": "kubernetes.event.reason",
        "type": "STRING"
    }, {
        "field": "message",
        "alias": "详情",
        "dim": "kubernetes.event.message",
        "type": "STRING"
    }, {
        "field": "kind",
        "alias": "资源类型",
        "dim": "kubernetes.event.involved_object.kind",
        "type": "STRING"
    }, {
        "field": "uid",
        "alias": "事件对象id",
        "dim": "kubernetes.event.metadata.uid",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:event AND kubernetes.event.involved_object.kind:{{kind}} AND kubernetes.event.metadata.namespace:{{namespace}} AND kubernetes.event.involved_object.name:{{name}}",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "kubernetes_event",
    "alias": "kubernetes事件明细",
    "responseParams": ["name", "namespace", "type", "reason", "message", "kind", "uid", "gmtOccur"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "kind",
        "alias": "资源类型",
        "type": "STRING",
        "required": False
    }, {
        "defaultValue": "*",
        "name": "namespace",
        "alias": "资源空间",
        "type": "STRING",
        "required": False
    }, {
        "defaultValue": "*",
        "name": "name",
        "alias": "资源实例名称",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "namespace",
        "type": "STRING"
    }, {
        "field": "podName",
        "alias": "POD名称",
        "dim": "pod_name",
        "type": "STRING"
    }, {
        "field": "podPhase",
        "alias": "POD状态阶段",
        "dim": "pod_phase",
        "type": "STRING"
    }, {
        "field": "podReady",
        "alias": "POD就绪",
        "dim": "pod_ready",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_id:{{appId}} AND app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "dwd_original_app_pod_status_di",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_pod_status",
    "alias": "应用POD状态明细",
    "responseParams": ["timestamp", "appId", "appComponentName", "appInstanceId", "appInstanceName", "appComponentInstanceId", "namespace", "podName", "podPhase", "podReady"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appId",
        "alias": "应用ID",
        "type": "STRING",
        "required": False
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "cpuPct",
        "alias": "CPU使用率",
        "dim": "kubernetes.pod.cpu.usage.node.pct",
        "type": "FLOAT",
        "operator": "max"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.labels.labels_appmanager_oam_dev\\/appId:{{appId}} AND kubernetes.labels.componentName:{{componentName}}",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_component_pod_cpu_usage_1d",
    "alias": "应用组件POD CPU使用率(天)",
    "responseParams": ["timestamp", "appId", "componentName", "podName", "cpuPct"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appId",
        "alias": "应用ID",
        "type": "STRING",
        "required": False
    }, {
        "defaultValue": "*",
        "name": "componentName",
        "alias": "组件名称",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [{
        "field": "timestamp",
        "granularity": "1d",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG",
        "operator": "date_histogram"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appId",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "componentName",
        "alias": "组件名称",
        "dim": "kubernetes.labels.componentName",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "podName",
        "alias": "POD名称",
        "dim": "kubernetes.pod.name",
        "type": "STRING",
        "operator": "terms"
    }],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG",
        "operator": "max"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.namespace:{{namespace}} AND kubernetes.labels.labels_appmanager_oam_dev\\/appId:{{appId}}",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_pod",
    "alias": "应用POD实例",
    "responseParams": ["timestamp", "namespace", "appId", "appComponentName", "podName", "appInstanceId", "appComponentInstanceId"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "namespace",
        "alias": "命名空间",
        "type": "STRING",
        "required": False
    }, {
        "defaultValue": "*",
        "name": "appId",
        "alias": "应用ID",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [{
        "field": "namespace",
        "alias": "命名空间",
        "dim": "kubernetes.namespace",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appId",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/componentName",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "podName",
        "alias": "POD名称",
        "dim": "kubernetes.pod.name",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appInstanceId",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/componentInstanceId",
        "type": "STRING",
        "operator": "terms"
    }],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "cpuPct",
        "alias": "CPU使用率",
        "dim": "kubernetes.pod.cpu.usage.node.pct",
        "type": "FLOAT",
        "operator": "max"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.labels.labels_appmanager_oam_dev\\/appInstanceId:{{appInstanceId}}",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_instance_pod_cpu_usage_1d",
    "alias": "应用实例CPU使用率(天)",
    "responseParams": ["appInstanceId", "timestamp", "cpuPct"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [{
        "field": "timestamp",
        "granularity": "1d",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG",
        "operator": "date_histogram"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appInstanceId",
        "type": "STRING",
        "operator": "terms"
    }],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "cpuPct",
        "alias": "CPU使用率",
        "dim": "kubernetes.pod.cpu.usage.node.pct",
        "type": "FLOAT",
        "operator": "max"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.labels.labels_appmanager_oam_dev\\/appInstanceId:{{appInstanceId}}",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_instance_pod_cpu_usage_1h",
    "alias": "应用实例CPU使用率(小时)",
    "responseParams": ["appInstanceId", "timestamp", "cpuPct"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [{
        "field": "timestamp",
        "granularity": "1h",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG",
        "operator": "date_histogram"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appInstanceId",
        "type": "STRING",
        "operator": "terms"
    }],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "podName",
        "alias": "POD名称",
        "dim": "prometheus.labels.pod",
        "type": "STRING"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appId",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_componentName",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_clusterId",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "prometheus.labels.namespace",
        "type": "STRING"
    }, {
        "field": "podCpuCoreHoursAllocation",
        "alias": "cpu_core分配量",
        "dim": "prometheus.query.pod_cpu_core_hours_allocation",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_cpu_core_hours_allocation:*",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_cpu_core_hours_allocation",
    "alias": "POD_CPU_CORE分配查询(小时)",
    "responseParams": ["podName", "appId", "appComponentName", "appInstanceId", "appComponentInstanceId", "appInstanceName", "clusterId", "namespace", "podCpuCoreHoursAllocation", "timestamp"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "podName",
        "alias": "POD名称",
        "dim": "prometheus.labels.pod",
        "type": "STRING"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appId",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_componentName",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_clusterId",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "prometheus.labels.namespace",
        "type": "STRING"
    }, {
        "field": "podRamGbHoursAllocation",
        "alias": "ram分配量",
        "dim": "prometheus.query.pod_ram_gb_hours_allocation",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "计算时间戳",
        "dim": "@timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_ram_gb_hours_allocation:*",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_ram_gb_hours_allocation",
    "alias": "POD_RAM_GB分配查询(小时)",
    "responseParams": ["podName", "appId", "appComponentName", "appInstanceId", "appComponentInstanceId", "appInstanceName", "clusterId", "namespace", "podRamGbHoursAllocation", "timestamp"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "podRamGbHoursAllocation",
        "alias": "ram分配GB",
        "dim": "pod_ram_gb_hours_allocation",
        "type": "DOUBLE"
    }, {
        "field": "podCpuCoreHoursAllocation",
        "alias": "cpu_core分配",
        "dim": "pod_cpu_core_hours_allocation",
        "type": "DOUBLE"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "cluster_id",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "namespace",
        "type": "STRING"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }, {
        "field": "podName",
        "alias": "pod名称",
        "dim": "pod_name",
        "type": "STRING"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "podPVCGbHoursAllocation",
        "alias": "pvc用量GB",
        "dim": "pod_pvc_gb_hours_allocation",
        "type": "DOUBLE"
    }, {
        "field": "podCpuCoreHoursUsageAvg",
        "alias": "cpu_core用量",
        "dim": "pod_cpu_core_hours_usage_avg",
        "type": "DOUBLE"
    }, {
        "field": "podRamGbHoursUsageAvg",
        "alias": "ram用量GB",
        "dim": "pod_ram_gb_hours_usage_avg",
        "type": "DOUBLE"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_id:{{appId}}",
    "dataSourceTable": "dwd_cost_pod_resource_allocation_di",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_resource_hours_allocation",
    "alias": "POD资源查询(小时)",
    "responseParams": ["clusterId", "namespace", "appId", "appComponentName", "appInstanceId", "appInstanceName", "appComponentInstanceId", "podName", "podRamGbHoursAllocation", "podCpuCoreHoursAllocation", "timestamp", "podPVCGbHoursAllocation", "podCpuCoreHoursUsageAvg", "podRamGbHoursUsageAvg"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appId",
        "alias": "应用ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "appId",
        "alias": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "field": "podRamGbAllocation",
        "alias": "ram量",
        "dim": "pod_ram_gb_allocation",
        "type": "DOUBLE"
    }, {
        "field": "podCpuCoreAllocation",
        "alias": "cpu量",
        "dim": "pod_cpu_core_allocation",
        "type": "DOUBLE"
    }, {
        "field": "id",
        "alias": "id",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "cluster_id",
        "type": "STRING"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "podPVCGbAllocation",
        "alias": "pvc量",
        "dim": "pod_pvc_gb_allocation",
        "type": "DOUBLE"
    }, {
        "field": "cpuEfficiency",
        "alias": "CPU水位",
        "dim": "cpu_efficiency",
        "type": "DOUBLE"
    }, {
        "field": "ramEfficiency",
        "alias": "ram水位",
        "dim": "ram_efficiency",
        "type": "DOUBLE"
    }, {
        "field": "podCpuCoreUsageAvg",
        "alias": "cpu平均使用core数",
        "dim": "pod_cpu_core_usage_avg",
        "type": "DOUBLE"
    }, {
        "field": "podRamGbUsageAvg",
        "alias": "ram平均使用GB",
        "dim": "pod_ram_gb_usage_avg",
        "type": "DOUBLE"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "dws_cost_pod_resource_allocation_stats_1d",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_resource_allocation_stats",
    "alias": "pod资源分配统计",
    "responseParams": ["appId", "appInstanceId", "podRamGbAllocation", "podCpuCoreAllocation", "id", "clusterId", "timestamp", "podPVCGbAllocation", "cpuEfficiency", "ramEfficiency", "podCpuCoreUsageAvg", "podRamGbUsageAvg"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "defaultValue": "",
        "name": "sTimestamp",
        "alias": "开始时间戳(毫秒)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(毫秒)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "id",
        "alias": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "cluster_id",
        "type": "STRING"
    }, {
        "field": "monthlyRamPrice",
        "alias": "ram月计价",
        "dim": "monthly_ram_price",
        "type": "DOUBLE"
    }, {
        "field": "monthlyCpuPrice",
        "alias": "cpu月计价",
        "dim": "monthly_cpu_price",
        "type": "DOUBLE"
    }, {
        "field": "currency",
        "alias": "货币",
        "dim": "currency",
        "type": "STRING"
    }, {
        "field": "monthlyStoragePrice",
        "alias": "storage月计价",
        "dim": "monthly_storage_price",
        "type": "DOUBLE"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "*",
    "dataSourceTable": "dim_cost_resource_price",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "resource_price",
    "alias": "资源定价",
    "responseParams": ["id", "clusterId", "monthlyRamPrice", "monthlyCpuPrice", "currency", "monthlyStoragePrice"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "cpuCoreAllocation",
        "alias": "cpu量",
        "dim": "cpu_core_allocation",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "ramGbAllocation",
        "alias": "ram量",
        "dim": "ram_gb_allocation",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "cpuCost",
        "alias": "cpu成本",
        "dim": "cpu_cost",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "ramCost",
        "alias": "ram成本",
        "dim": "ram_cost",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "cost",
        "alias": "总成本",
        "dim": "cost",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "pvcCost",
        "alias": "pvc成本",
        "dim": "pvc_cost",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "pvcGbAllocation",
        "alias": "pvc量",
        "dim": "pvc_gb_allocation",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "podCnt",
        "alias": "pod数量",
        "dim": "pod_cnt",
        "type": "DOUBLE",
        "operator": "max"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND  app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "ads_app_cost",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_cost",
    "alias": "应用成本",
    "responseParams": ["cpuCoreAllocation", "ramGbAllocation", "cpuCost", "ramCost", "cost", "currency", "pvcCost", "pvcGbAllocation", "podCnt", "appInstanceId"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [{
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "currency",
        "alias": "货币单位",
        "dim": "currency",
        "type": "STRING",
        "operator": "terms"
    }],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "podName",
        "alias": "POD名称",
        "dim": "prometheus.labels.pod",
        "type": "STRING"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appId",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_componentName",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_clusterId",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "prometheus.labels.namespace",
        "type": "STRING"
    }, {
        "field": "podPVCGbHoursAllocation",
        "alias": "pvc分配量",
        "dim": "prometheus.query.pod_pvc_gb_hours_allocation",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "计算时间戳",
        "dim": "@timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_pvc_gb_hours_allocation:*",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_pvc_gb_hours_allocation",
    "alias": "POD_PVC_GB分配查询(小时)",
    "responseParams": ["podName", "appId", "appComponentName", "appInstanceId", "appComponentInstanceId", "appInstanceName", "clusterId", "namespace", "podPVCGbHoursAllocation", "timestamp"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "podName",
        "alias": "POD名称",
        "dim": "prometheus.labels.pod",
        "type": "STRING"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appId",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_componentName",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_clusterId",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "prometheus.labels.namespace",
        "type": "STRING"
    }, {
        "field": "podCpuCoreHoursUsageAvg",
        "alias": "cpu_core使用量",
        "dim": "prometheus.query.pod_cpu_core_hours_usage_avg",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_cpu_core_hours_usage_avg:*",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_cpu_core_hours_usage_avg",
    "alias": "POD_CPU_CORE使用量查询(小时)",
    "responseParams": ["podName", "appId", "appComponentName", "appInstanceId", "appComponentInstanceId", "appInstanceName", "clusterId", "namespace", "podCpuCoreHoursUsageAvg", "timestamp"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "podName",
        "alias": "POD名称",
        "dim": "prometheus.labels.pod",
        "type": "STRING"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appId",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_componentName",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_clusterId",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "prometheus.labels.namespace",
        "type": "STRING"
    }, {
        "field": "podRamGbHoursUsageAvg",
        "alias": "ram使用量",
        "dim": "prometheus.query.pod_ram_gb_hours_usage_avg",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "计算时间戳",
        "dim": "@timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_ram_gb_hours_usage_avg:*",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_ram_gb_hours_usage_avg",
    "alias": "POD_RAM_GB使用量查询(小时)",
    "responseParams": ["podName", "appId", "appComponentName", "appInstanceId", "appComponentInstanceId", "appInstanceName", "clusterId", "namespace", "podRamGbHoursUsageAvg", "timestamp"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "cpuCoreAllocation",
        "alias": "cpu量",
        "dim": "cpu_core_allocation",
        "type": "DOUBLE",
        "operator": ""
    }, {
        "field": "ramGbAllocation",
        "alias": "ram量",
        "dim": "ram_gb_allocation",
        "type": "DOUBLE",
        "operator": ""
    }, {
        "field": "pvcGbAllocation",
        "alias": "pvc量",
        "dim": "pvc_gb_allocation",
        "type": "DOUBLE",
        "operator": ""
    }, {
        "field": "ramGbUsageAvg",
        "alias": "ram使用",
        "dim": "ram_gb_usage_avg",
        "type": "DOUBLE"
    }, {
        "field": "cpuCoreUsageAvg",
        "alias": "cpu使用",
        "dim": "cpu_core_usage_avg",
        "type": "DOUBLE"
    }, {
        "field": "cpuEfficiency",
        "alias": "cpu水位",
        "dim": "cpu_efficiency",
        "type": "DOUBLE"
    }, {
        "field": "ramEfficiency",
        "alias": "ram水位",
        "dim": "ram_efficiency",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND  app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "ads_app_cost",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_resource",
    "alias": "应用资源",
    "responseParams": ["cpuCoreAllocation", "ramGbAllocation", "pvcGbAllocation", "appInstanceId", "ramGbUsageAvg", "cpuCoreUsageAvg", "cpuEfficiency", "ramEfficiency", "timestamp"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": [{
        "dim": "timestamp",
        "order": "asc"
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "field": "riskInstanceCntDailyAdditions",
        "alias": "每日新增风险实例数量",
        "dim": "risk_instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "alertInstanceCntDailyAdditions",
        "alias": "每日新增告警实例数量",
        "dim": "alert_instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "incidentInstanceCntDailyAdditions",
        "alias": "每日新增异常实例数量",
        "dim": "incident_instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "failureInstanceCntDailyAdditions",
        "alias": "每日新增故障实例数量",
        "dim": "failure_instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "ads_app_health",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_health",
    "alias": "应用健康",
    "responseParams": ["appInstanceId", "timestamp", "riskInstanceCntDailyAdditions", "alertInstanceCntDailyAdditions", "incidentInstanceCntDailyAdditions", "failureInstanceCntDailyAdditions"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": [{
        "dim": "timestamp",
        "order": "asc"
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "teamId",
        "alias": "团队ID",
        "dim": "team_id",
        "type": "INT"
    }, {
        "field": "user",
        "alias": "用户ID",
        "dim": "user",
        "type": "STRING"
    }, {
        "field": "role",
        "alias": "用户角色",
        "dim": "role",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "1=1",
    "dataSourceTable": "team_user",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "2",
    "name": "team_user",
    "alias": "团队用户",
    "responseParams": ["teamId", "user", "role"],
    "contentType": "application/json",
    "dataSourceType": "mysql"
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "appId",
        "alias": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "field": "deliveryCntDailyAdditions",
        "alias": "每日新增构建次数",
        "dim": "delivery_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "deliverySuccessCntDailyAdditions",
        "alias": "每日新增成功构建次数",
        "dim": "delivery_success_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "deliverySuccessRateDaily",
        "alias": "每日构建成功率",
        "dim": "delivery_success_rate_daily",
        "type": "DOUBLE"
    }, {
        "field": "deploymentCntDailyAdditions",
        "alias": "每日新增部署次数",
        "dim": "deployment_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "deploymentSuccessCntDailyAdditions",
        "alias": "每日新增成功部署次数",
        "dim": "deployment_success_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "deploymentSuccessRateDaily",
        "alias": "每日部署成功率",
        "dim": "deployment_success_rate_daily",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "统计时间",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "teamId",
        "alias": "团队ID",
        "dim": "team_id",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "ads_app_delivery_deployment_quality",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_delivery_deployment_quality",
    "alias": "应用交付部署质量",
    "responseParams": ["appInstanceId", "appInstanceName", "deliveryCntDailyAdditions", "deliverySuccessCntDailyAdditions", "deliverySuccessRateDaily", "deploymentCntDailyAdditions", "deploymentSuccessCntDailyAdditions", "deploymentSuccessRateDaily", "timestamp", "teamId", "appId"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "appId",
        "alias": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "field": "deliveryCntDailyAdditions",
        "alias": "每日新增构建次数",
        "dim": "delivery_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "deploymentCntDailyAdditions",
        "alias": "每日新增部署次数",
        "dim": "deployment_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "hrEffectivenessRatioDaily",
        "alias": "每日人效比",
        "dim": "hr_effectiveness_ratio_daily",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "统计时间",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "teamId",
        "alias": "团队ID",
        "dim": "team_id",
        "type": "LONG"
    }, {
        "field": "teamMemberCnt",
        "alias": "团队成员数",
        "dim": "team_member_cnt",
        "type": "INT"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "ads_app_delivery_deployment_efficiency",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_delivery_deployment_efficiency",
    "alias": "应用交付部署效能",
    "responseParams": ["appInstanceId", "appInstanceName", "deliveryCntDailyAdditions", "deploymentCntDailyAdditions", "timestamp", "teamId", "appId", "teamMemberCnt", "hrEffectivenessRatioDaily"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "metricId",
        "alias": "指标定义ID",
        "dim": "metric_id",
        "type": "INT"
    }, {
        "field": "instanceId",
        "alias": "指标实例ID",
        "dim": "uid",
        "type": "STRING"
    }, {
        "field": "metricType",
        "alias": "指标类型",
        "dim": "type",
        "type": "STRING"
    }, {
        "field": "timestamp",
        "alias": "采集时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "value",
        "alias": "指标值",
        "dim": "value",
        "type": "DOUBLE"
    }, {
        "field": "labels",
        "alias": "实例标签",
        "dim": "labels",
        "type": "OBJECT"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND metric_id:{{metricId}} AND labels.{{labelName}}:{{labelValue}}",
    "dataSourceTable": "dwd_original_metric_data_di",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "metric_data",
    "alias": "指标数据接口",
    "responseParams": ["metricId", "instanceId", "metricType", "timestamp", "value", "labels"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "",
        "name": "metricId",
        "alias": "指标ID",
        "type": "INT",
        "required": True
    }, {
        "name": "labelName",
        "alias": "指标标签KEY",
        "type": "STRING",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "labelValue",
        "alias": "指标标签VALUE",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [],
    "sortFields": [{
        "dim": "timestamp",
        "order": "asc"
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "instanceId",
        "alias": "指标实例ID",
        "dim": "uid",
        "type": "STRING"
    }, {
        "field": "metricType",
        "alias": "指标类型",
        "dim": "type",
        "type": "STRING"
    }, {
        "field": "timestamp",
        "alias": "采集时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "value",
        "alias": "指标值",
        "dim": "value",
        "type": "DOUBLE"
    }, {
        "field": "labels",
        "alias": "实例标签",
        "dim": "labels",
        "type": "OBJECT"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND metric_name:{{metricName}} AND labels.app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "dwd_original_metric_data_di",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_metric_data",
    "alias": "应用指标数据接口",
    "responseParams": ["instanceId", "metricType", "timestamp", "value", "labels"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": False
    }, {
        "defaultValue": "*",
        "name": "metricName",
        "alias": "指标名称",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [],
    "sortFields": [{
        "dim": "timestamp",
        "order": "asc"
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "id",
        "alias": "事件ID",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "namespace",
        "type": "STRING"
    }, {
        "field": "podName",
        "alias": "pod名称",
        "dim": "pod_name",
        "type": "STRING"
    }, {
        "field": "type",
        "alias": "事件类型",
        "dim": "type",
        "type": "STRING"
    }, {
        "field": "reason",
        "alias": "事件原因",
        "dim": "reason",
        "type": "STRING"
    }, {
        "field": "message",
        "alias": "事件详情",
        "dim": "message",
        "type": "STRING"
    }, {
        "field": "gmtOccur",
        "alias": "发生时间",
        "dim": "gmt_occur",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "gmt_occur [{{sTimestamp}} TO {{eTimestamp}}}",
    "dataSourceTable": "dwd_original_pod_event_di",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_event",
    "alias": "POD事件明细",
    "responseParams": ["id", "namespace", "podName", "type", "reason", "gmtOccur", "message"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }],
    "groupFields": [],
    "sortFields": [{
        "dim": "gmt_occur",
        "order": "asc"
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "appId",
        "alias": "应用ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appId",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appInstanceId",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appInstanceName",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/componentName",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/componentInstanceId",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "kubernetes.namespace",
        "type": "STRING"
    }, {
        "field": "podName",
        "alias": "POD名称",
        "dim": "kubernetes.pod.name",
        "type": "STRING"
    }, {
        "field": "podStatus",
        "alias": "POD状态",
        "dim": "kubernetes.pod.status",
        "type": "OBJECT"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:state_pod AND kubernetes.labels.stageId:prod AND kubernetes.labels.labels_appmanager_oam_dev\\/appId:{{appId}}",
    "dataSourceTable": "metricbeat",
    "buildIn": False,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_status",
    "alias": "POD状态明细",
    "responseParams": ["appInstanceId", "appInstanceName", "appComponentName", "appComponentInstanceId", "namespace", "podName", "podStatus", "timestamp", "appId"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appId",
        "alias": "应用ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}]


def add_interfaces():
    url = host["dataset"] + "/interfaceConfig_v2/createConfig"
    for interface in interfaces:
        r = requests.post(url, headers=headers, json=interface)
        if r.status_code == 200:
            print(r.json())

690458557728b555a9153b598b3c778066bee64e
<mask token>

<mask token>


def add_interfaces():
    url = host['dataset'] + '/interfaceConfig_v2/createConfig'
    for interface in interfaces:
        r = requests.post(url, headers=headers, json=interface)
        if r.status_code == 200:
            print(r.json())

<mask token>
headers = {}
interfaces = [{'creator': '999999999', 'queryFields': [{'field':
    'action_meta_data', 'alias': '操作详情元数据', 'dim': 'action_meta_data',
    'type': 'OBJECT'}, {'field': 'action_type', 'alias': '操作类型', 'dim':
    'action_type', 'type': 'STRING'}, {'field': 'action_label', 'alias':
    '操作标签', 'dim': 'action_label', 'type': 'STRING'}, {'field':
    'action_name', 'alias': '操作名称', 'dim': 'action_name', 'type': 'STRING'},
    {'field': 'exec_data', 'alias': '执行返回数据', 'dim': 'exec_data', 'type':
    'OBJECT'}, {'field': 'create_time', 'alias': '执行返回数据', 'dim':
    'create_time', 'type': 'LONG'}, {'field': 'processor', 'alias': '操作人',
    'dim': 'processor', 'type': 'OBJECT'}, {'field': 'params', 'alias':
    '操作参数', 'dim': 'action_meta_data.params', 'type': 'OBJECT'}, {'field':
    'start_time', 'alias': '开始时间', 'dim': 'start_time', 'type': 'LONG'}, {
    'field': 'end_time', 'alias': '结束时间', 'dim': 'end_time', 'type': 'LONG'
    }], 'requestMethod': 'POST', 'lastModifier': '999999999', 'paging': 
    True, 'qlTemplate': '{{query}}', 'dataSourceTable': 'sreworks_action',
    'buildIn': True, 'mode': 'guide', 'dataSourceId': '1', 'name': 'action',
    'alias': '操作明细', 'responseParams': ['action_meta_data', 'action_type',
    'action_label', 'action_name', 'exec_data', 'create_time', 'processor',
    'params', 'start_time', 'end_time'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'query', 'alias':
    '查询条件', 'type': 'STRING', 'required': True}], 'groupFields': [],
    'sortFields': [{'dim': 'create_time', 'order': 'desc'}]}, {'creator':
    '999999999', 'queryFields': [{'field': 'id', 'alias': '团队ID', 'dim':
    'id', 'type': 'STRING'}, {'field': 'name', 'alias': '团队名称', 'dim':
    'name', 'type': 'STRING'}, {'field': 'avatar', 'alias': '头像', 'dim':
    'avatar', 'type': 'STRING'}, {'field': 'visible_scope', 'alias': '可见属性',
    'dim': 'visible_scope', 'type': 'STRING'}, {'field': 'creator', 'alias':
    '创建人', 'dim': 'creator', 'type': 'STRING'}, {'field': 'gmt_create',
    'alias': '创建时间', 'dim': 'gmt_create', 'type': 'DATE'}, {'field':
    'last_modifier', 'alias': '最近修改人', 'dim': 'last_modifier', 'type':
    'STRING'}, {'field': 'gmt_modified', 'alias': '最近修改时间', 'dim':
    'gmt_modified', 'type': 'DATE'}, {'field': 'description', 'alias': '说明',
    'dim': 'description', 'type': 'STRING'}], 'requestMethod': 'GET',
    'lastModifier': '999999999', 'paging': False, 'qlTemplate':
    'ds:{{ds}} AND {{query}}', 'dataSourceTable': 'ods_team', 'buildIn': 
    True, 'mode': 'guide', 'dataSourceId': '1', 'name': 'team', 'alias':
    '团队明细(数仓)', 'responseParams': ['id', 'name', 'avatar', 'visible_scope',
    'creator', 'gmt_create', 'last_modifier', 'gmt_modified', 'description'
    ], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'defaultValue': '*', 'name': 'query', 'alias':
    '查询条件', 'type': 'STRING', 'required': False}, {'name': 'ds', 'alias':
    '时间分区', 'type': 'STRING', 'required': True}]}, {'creator': '999999999',
    'queryFields': [{'field': 'id', 'alias': '应用ID', 'dim': 'id', 'type':
    'STRING'}, {'field': 'name', 'alias': '应用名称', 'dim': 'name', 'type':
    'STRING'}, {'field': 'labels', 'alias': '应用标签', 'dim': 'labels', 'type':
    'OBJECT'}, {'field': 'detail', 'alias': '应用详情', 'dim': 'detail', 'type':
    'OBJECT'}, {'field': 'team_id', 'alias': '归属应用ID', 'dim': 'team_id',
    'type': 'OBJECT'}, {'field': 'creator', 'alias': '创建人', 'dim':
    'creator', 'type': 'STRING'}, {'field': 'last_modifier', 'alias':
    '最近修改人', 'dim': 'last_modifier', 'type': 'STRING'}, {'field':
    'gmt_create', 'alias': '创建时间', 'dim': 'gmt_create', 'type': 'DATE'}, {
    'field': 'gmt_modified', 'alias': '最近修改时间', 'dim': 'gmt_modified',
    'type': 'DATE'}, {'field': 'display', 'alias': '可见', 'dim': 'display',
    'type': 'BOOLEAN'}, {'field': 'annotations', 'alias': '应用注解', 'dim':
    'annotations', 'type': 'OBJECT'}, {'field': 'description', 'alias':
    '应用描述', 'dim': 'description', 'type': 'STRING'}], 'requestMethod':
    'GET', 'lastModifier': '999999999', 'paging': False, 'qlTemplate':
    'ds:{{ds}} AND {{query}}', 'dataSourceTable': 'ods_app', 'buildIn': 
    True, 'mode': 'guide', 'dataSourceId': '1', 'name': 'app', 'alias':
    '应用明细(数仓)', 'responseParams': ['id', 'name', 'labels', 'detail',
    'team_id', 'creator', 'last_modifier', 'gmt_create', 'gmt_modified',
    'display', 'annotations', 'description'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [{
    'defaultValue': '*', 'name': 'query', 'alias': '查询条件', 'type': 'STRING',
    'required': False}, {'name': 'ds', 'alias': '时间分区', 'type': 'STRING',
    'required': True}]}, {'creator': '999999999', 'queryFields': [{'field':
    'id', 'alias': '集群ID', 'dim': 'id', 'type': 'STRING'}, {'field': 'name',
    'alias': '集群名称', 'dim': 'name', 'type': 'STRING'}, {'field':
    'cluster_name', 'alias': '集群code', 'dim': 'cluster_name', 'type':
    'STRING'}, {'field': 'account_id', 'alias': '关联账户', 'dim': 'account_id',
    'type': 'STRING'}, {'field': 'team_id', 'alias': '归属团队ID', 'dim':
    'team_id', 'type': 'STRING'}], 'requestMethod': 'GET', 'lastModifier':
    '999999999', 'paging': False, 'qlTemplate': 'ds:{{ds}} AND {{query}}',
    'dataSourceTable': 'ods_cluster', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'cluster', 'alias': '集群明细(数仓)',
    'responseParams': ['id', 'name', 'cluster_name', 'account_id',
    'team_id'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'ds', 'alias': '时间分区', 'type': 'STRING',
    'required': True}, {'defaultValue': '*', 'name': 'query', 'alias':
    '查询条件', 'type': 'STRING', 'required': False}]}, {'creator': '999999999',
    'queryFields': [{'field': 'id', 'alias': '应用ID', 'dim': 'id', 'type':
    'STRING'}, {'field': 'name', 'alias': '应用名称', 'dim': 'name', 'type':
    'STRING'}, {'field': 'team_id', 'alias': '归属团队', 'dim': 'team_id',
    'type': 'STRING'}], 'requestMethod': 'GET', 'lastModifier': '999999999',
    'paging': False, 'qlTemplate': '1=1', 'dataSourceTable': 'app',
    'buildIn': True, 'mode': 'guide', 'dataSourceId': '2', 'name':
    'sreworks_app', 'alias': '应用明细', 'responseParams': ['id', 'name',
    'team_id'], 'contentType': 'application/json', 'dataSourceType':
    'mysql', 'requestParams': [], 'groupFields': [], 'sortFields': []}, {
    'creator': '999999999', 'queryFields': [{'field': 'cpuPct', 'alias':
    '使用率', 'dim': 'host.cpu.pct', 'type': 'FLOAT', 'operator': 'max'}],
    'requestMethod': 'GET', 'lastModifier': '999999999', 'paging': False,
    'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:system AND metricset.name:cpu AND host.name:{{hostname}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'node_cpu_usage_1d', 'alias':
    '节点CPU使用率(天)', 'responseParams': ['timestamp', 'hostname', 'cpuPct'],
    'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'defaultValue': '', 'name': 'sTimestamp', 'alias':
    '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name': 'eTimestamp',
    'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True}, {
    'defaultValue': '*', 'name': 'hostname', 'alias': '节点名称', 'type':
    'STRING', 'required': False}], 'groupFields': [{'field': 'timestamp',
    'granularity': '1d', 'alias': '时间戳', 'dim': '@timestamp', 'type':
    'LONG', 'operator': 'date_histogram'}, {'field': 'hostname', 'alias':
    '节点名称', 'dim': 'host.name', 'type': 'STRING', 'operator': 'terms'}],
    'sortFields': []}, {'creator': '999999999', 'queryFields': [{'field':
    'name', 'alias': '资源实例名称', 'dim':
    'kubernetes.event.involved_object.name', 'type': 'STRING'}, {'field':
    'namespace', 'alias': '资源空间', 'dim':
    'kubernetes.event.metadata.namespace', 'type': 'STRING'}, {'field':
    'gmtOccur', 'alias': '发生时间', 'dim':
    'kubernetes.event.timestamp.last_occurrence', 'type': 'LONG'}, {'field':
    'type', 'alias': '类型', 'dim': 'kubernetes.event.type', 'type': 'STRING'
    }, {'field': 'reason', 'alias': '原因', 'dim': 'kubernetes.event.reason',
    'type': 'STRING'}, {'field': 'message', 'alias': '详情', 'dim':
    'kubernetes.event.message', 'type': 'STRING'}, {'field': 'kind',
    'alias': '资源类型', 'dim': 'kubernetes.event.involved_object.kind', 'type':
    'STRING'}, {'field': 'uid', 'alias': '事件对象id', 'dim':
    'kubernetes.event.metadata.uid', 'type': 'STRING'}], 'requestMethod':
    'GET', 'lastModifier': '999999999', 'paging': True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:event AND kubernetes.event.involved_object.kind:{{kind}} AND kubernetes.event.metadata.namespace:{{namespace}} AND kubernetes.event.involved_object.name:{{name}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'kubernetes_event', 'alias':
    'kubernetes事件明细', 'responseParams': ['name', 'namespace', 'type',
    'reason', 'message', 'kind', 'uid', 'gmtOccur'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [{'name':
    'sTimestamp', 'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True},
    {'name': 'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required':
    True}, {'defaultValue': '*', 'name': 'kind', 'alias': '资源类型', 'type':
    'STRING', 'required': False}, {'defaultValue': '*', 'name': 'namespace',
    'alias': '资源空间', 'type': 'STRING', 'required': False}, {'defaultValue':
    '*', 'name': 'name', 'alias': '资源实例名称', 'type': 'STRING', 'required': 
    False}], 'groupFields': [], 'sortFields': []}, {'creator': '999999999',
    'queryFields': [{'field': 'timestamp', 'alias': '时间戳', 'dim':
    'timestamp', 'type': 'LONG'}, {'field': 'appId', 'alias': '应用ID', 'dim':
    'app_id', 'type': 'STRING'}, {'field': 'appComponentName', 'alias':
    '组件名称', 'dim': 'app_component_name', 'type': 'STRING'}, {'field':
    'namespace', 'alias': '命名空间', 'dim': 'namespace', 'type': 'STRING'}, {
    'field': 'podName', 'alias': 'POD名称', 'dim': 'pod_name', 'type':
    'STRING'}, {'field': 'podPhase', 'alias': 'POD状态阶段', 'dim': 'pod_phase',
    'type': 'STRING'}, {'field': 'podReady', 'alias': 'POD就绪', 'dim':
    'pod_ready', 'type': 'STRING'}, {'field': 'appInstanceId', 'alias':
    '应用实例ID', 'dim': 'app_instance_id', 'type': 'STRING'}, {'field':
    'appInstanceName', 'alias': '应用实例名称', 'dim': 'app_instance_name',
    'type': 'STRING'}, {'field': 'appComponentInstanceId', 'alias':
    '应用组件ID', 'dim': 'app_component_instance_id', 'type': 'STRING'}],
    'requestMethod': 'GET', 'lastModifier': '999999999', 'paging': True,
    'qlTemplate':
    'timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_id:{{appId}} AND app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'dwd_original_app_pod_status_di', 'buildIn': True,
    'mode': 'guide', 'dataSourceId': '1', 'name': 'app_pod_status', 'alias':
    '应用POD状态明细', 'responseParams': ['timestamp', 'appId',
    'appComponentName', 'appInstanceId', 'appInstanceName',
    'appComponentInstanceId', 'namespace', 'podName', 'podPhase',
    'podReady'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}, {'defaultValue': '*', 'name':
    'appId', 'alias': '应用ID', 'type': 'STRING', 'required': False}, {
    'defaultValue': '*', 'name': 'appInstanceId', 'alias': '应用实例ID', 'type':
    'STRING', 'required': False}], 'groupFields': [], 'sortFields': []}, {
    'creator': '999999999', 'queryFields': [{'field': 'cpuPct', 'alias':
    'CPU使用率', 'dim': 'kubernetes.pod.cpu.usage.node.pct', 'type': 'FLOAT',
    'operator': 'max'}], 'requestMethod': 'GET', 'lastModifier':
    '999999999', 'paging': False, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.labels.labels_appmanager_oam_dev\\/appId:{{appId}} AND kubernetes.labels.componentName:{{componentName}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_component_pod_cpu_usage_1d', 'alias':
    '应用组件POD CPU使用率(天)', 'responseParams': ['timestamp', 'appId',
    'componentName', 'podName', 'cpuPct'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [{'name':
    'sTimestamp', 'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True},
    {'name': 'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required':
    True}, {'defaultValue': '*', 'name': 'appId', 'alias': '应用ID', 'type':
    'STRING', 'required': False}, {'defaultValue': '*', 'name':
    'componentName', 'alias': '组件名称', 'type': 'STRING', 'required': False}],
    'groupFields': [{'field': 'timestamp', 'granularity': '1d', 'alias':
    '时间戳', 'dim': '@timestamp', 'type': 'LONG', 'operator':
    'date_histogram'}, {'field': 'appId', 'alias': '应用ID', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/appId', 'type': 'STRING',
    'operator': 'terms'}, {'field': 'componentName', 'alias': '组件名称', 'dim':
    'kubernetes.labels.componentName', 'type': 'STRING', 'operator':
    'terms'}, {'field': 'podName', 'alias': 'POD名称', 'dim':
    'kubernetes.pod.name', 'type': 'STRING', 'operator': 'terms'}],
    'sortFields': []}, {'creator': '999999999', 'queryFields': [{'field':
    'timestamp', 'alias': '时间戳', 'dim': '@timestamp', 'type': 'LONG',
    'operator': 'max'}], 'requestMethod': 'GET', 'lastModifier':
    '999999999', 'paging': True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.namespace:{{namespace}} AND kubernetes.labels.labels_appmanager_oam_dev\\/appId:{{appId}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_pod', 'alias': '应用POD实例',
    'responseParams': ['timestamp', 'namespace', 'appId',
    'appComponentName', 'podName', 'appInstanceId',
    'appComponentInstanceId'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'sTimestamp',
    'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name':
    'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True},
    {'defaultValue': '*', 'name': 'namespace', 'alias': '命名空间', 'type':
    'STRING', 'required': False}, {'defaultValue': '*', 'name': 'appId',
    'alias': '应用ID', 'type': 'STRING', 'required': False}], 'groupFields':
    [{'field': 'namespace', 'alias': '命名空间', 'dim': 'kubernetes.namespace',
    'type': 'STRING', 'operator': 'terms'}, {'field': 'appId', 'alias':
    '应用ID', 'dim': 'kubernetes.labels.labels_appmanager_oam_dev/appId',
    'type': 'STRING', 'operator': 'terms'}, {'field': 'appComponentName',
    'alias': '应用组件名称', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/componentName', 'type':
    'STRING', 'operator': 'terms'}, {'field': 'podName', 'alias': 'POD名称',
    'dim': 'kubernetes.pod.name', 'type': 'STRING', 'operator': 'terms'}, {
    'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/appInstanceId', 'type':
    'STRING', 'operator': 'terms'}, {'field': 'appComponentInstanceId',
    'alias': '应用组件实例ID', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/componentInstanceId',
    'type': 'STRING', 'operator': 'terms'}], 'sortFields': []}, {'creator':
    '999999999', 'queryFields': [{'field': 'cpuPct', 'alias': 'CPU使用率',
    'dim': 'kubernetes.pod.cpu.usage.node.pct', 'type': 'FLOAT', 'operator':
    'max'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    False, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.labels.labels_appmanager_oam_dev\\/appInstanceId:{{appInstanceId}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_instance_pod_cpu_usage_1d', 'alias':
    '应用实例CPU使用率(天)', 'responseParams': ['appInstanceId', 'timestamp',
    'cpuPct'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}, {'name': 'appInstanceId', 'alias':
    '应用实例ID', 'type': 'STRING', 'required': True}], 'groupFields': [{
    'field': 'timestamp', 'granularity': '1d', 'alias': '时间戳', 'dim':
    '@timestamp', 'type': 'LONG', 'operator': 'date_histogram'}, {'field':
    'appInstanceId', 'alias': '应用实例ID', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/appInstanceId', 'type':
    'STRING', 'operator': 'terms'}], 'sortFields': []}, {'creator':
    '999999999', 'queryFields': [{'field': 'cpuPct', 'alias': 'CPU使用率',
    'dim': 'kubernetes.pod.cpu.usage.node.pct', 'type': 'FLOAT', 'operator':
    'max'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    False, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.labels.labels_appmanager_oam_dev\\/appInstanceId:{{appInstanceId}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_instance_pod_cpu_usage_1h', 'alias':
    '应用实例CPU使用率(小时)', 'responseParams': ['appInstanceId', 'timestamp',
    'cpuPct'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}, {'name': 'appInstanceId', 'alias':
    '应用实例ID', 'type': 'STRING', 'required': True}], 'groupFields': [{
    'field': 'timestamp', 'granularity': '1h', 'alias': '时间戳', 'dim':
    '@timestamp', 'type': 'LONG', 'operator': 'date_histogram'}, {'field':
    'appInstanceId', 'alias': '应用实例ID', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/appInstanceId', 'type':
    'STRING', 'operator': 'terms'}], 'sortFields': []}, {'creator':
    '999999999', 'queryFields': [{'field': 'podName', 'alias': 'POD名称',
    'dim': 'prometheus.labels.pod', 'type': 'STRING'}, {'field': 'appId',
    'alias': '应用ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appId', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_componentName',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appComponentInstanceId', 'alias':
    '应用组件实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称',
    'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName',
    'type': 'STRING'}, {'field': 'clusterId', 'alias': '集群ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_clusterId', 'type':
    'STRING'}, {'field': 'namespace', 'alias': '命名空间', 'dim':
    'prometheus.labels.namespace', 'type': 'STRING'}, {'field':
    'podCpuCoreHoursAllocation', 'alias': 'cpu_core分配量', 'dim':
    'prometheus.query.pod_cpu_core_hours_allocation', 'type': 'DOUBLE'}, {
    'field': 'timestamp', 'alias': '时间戳', 'dim': '@timestamp', 'type':
    'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_cpu_core_hours_allocation:*'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'pod_cpu_core_hours_allocation', 'alias':
    'POD_CPU_CORE分配查询(小时)', 'responseParams': ['podName', 'appId',
    'appComponentName', 'appInstanceId', 'appComponentInstanceId',
    'appInstanceName', 'clusterId', 'namespace',
    'podCpuCoreHoursAllocation', 'timestamp'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [{'name':
    'sTimestamp', 'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True},
    {'name': 'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required':
    True}], 'groupFields': [], 'sortFields': []}, {'creator': '999999999',
    'queryFields': [{'field': 'podName', 'alias': 'POD名称', 'dim':
    'prometheus.labels.pod', 'type': 'STRING'}, {'field': 'appId', 'alias':
    '应用ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appId', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_componentName',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appComponentInstanceId', 'alias':
    '应用组件实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称',
    'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName',
    'type': 'STRING'}, {'field': 'clusterId', 'alias': '集群ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_clusterId', 'type':
    'STRING'}, {'field': 'namespace', 'alias': '命名空间', 'dim':
    'prometheus.labels.namespace', 'type': 'STRING'}, {'field':
    'podRamGbHoursAllocation', 'alias': 'ram分配量', 'dim':
    'prometheus.query.pod_ram_gb_hours_allocation', 'type': 'DOUBLE'}, {
    'field': 'timestamp', 'alias': '计算时间戳', 'dim': '@timestamp', 'type':
    'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_ram_gb_hours_allocation:*'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'pod_ram_gb_hours_allocation', 'alias':
    'POD_RAM_GB分配查询(小时)', 'responseParams': ['podName', 'appId',
    'appComponentName', 'appInstanceId', 'appComponentInstanceId',
    'appInstanceName', 'clusterId', 'namespace', 'podRamGbHoursAllocation',
    'timestamp'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}], 'groupFields': [], 'sortFields': []
    }, {'creator': '999999999', 'queryFields': [{'field':
    'podRamGbHoursAllocation', 'alias': 'ram分配GB', 'dim':
    'pod_ram_gb_hours_allocation', 'type': 'DOUBLE'}, {'field':
    'podCpuCoreHoursAllocation', 'alias': 'cpu_core分配', 'dim':
    'pod_cpu_core_hours_allocation', 'type': 'DOUBLE'}, {'field':
    'clusterId', 'alias': '集群ID', 'dim': 'cluster_id', 'type': 'STRING'}, {
    'field': 'namespace', 'alias': '命名空间', 'dim': 'namespace', 'type':
    'STRING'}, {'field': 'appId', 'alias': '应用ID', 'dim': 'app_id', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'app_component_name', 'type': 'STRING'}, {'field': 'appInstanceId',
    'alias': '应用实例ID', 'dim': 'app_instance_id', 'type': 'STRING'}, {
    'field': 'appInstanceName', 'alias': '应用实例名称', 'dim':
    'app_instance_name', 'type': 'STRING'}, {'field':
    'appComponentInstanceId', 'alias': '应用组件实例ID', 'dim':
    'app_component_instance_id', 'type': 'STRING'}, {'field': 'podName',
    'alias': 'pod名称', 'dim': 'pod_name', 'type': 'STRING'}, {'field':
    'timestamp', 'alias': '时间戳', 'dim': 'timestamp', 'type': 'LONG'}, {
    'field': 'podPVCGbHoursAllocation', 'alias': 'pvc用量GB', 'dim':
    'pod_pvc_gb_hours_allocation', 'type': 'DOUBLE'}, {'field':
    'podCpuCoreHoursUsageAvg', 'alias': 'cpu_core用量', 'dim':
    'pod_cpu_core_hours_usage_avg', 'type': 'DOUBLE'}, {'field':
    'podRamGbHoursUsageAvg', 'alias': 'ram用量GB', 'dim':
    'pod_ram_gb_hours_usage_avg', 'type': 'DOUBLE'}], 'requestMethod':
    'GET', 'lastModifier': '999999999', 'paging': True, 'qlTemplate':
    'timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_id:{{appId}}',
    'dataSourceTable': 'dwd_cost_pod_resource_allocation_di', 'buildIn': 
    True, 'mode': 'guide', 'dataSourceId': '1', 'name':
    'pod_resource_hours_allocation', 'alias': 'POD资源查询(小时)',
    'responseParams': ['clusterId', 'namespace', 'appId',
    'appComponentName', 'appInstanceId', 'appInstanceName',
    'appComponentInstanceId', 'podName', 'podRamGbHoursAllocation',
    'podCpuCoreHoursAllocation', 'timestamp', 'podPVCGbHoursAllocation',
    'podCpuCoreHoursUsageAvg', 'podRamGbHoursUsageAvg'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [{'name':
    'sTimestamp', 'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True},
    {'name': 'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required':
    True}, {'defaultValue': '*', 'name': 'appId', 'alias': '应用ID', 'type':
    'STRING', 'required': True}], 'groupFields': [], 'sortFields': []}, {
    'creator': '999999999', 'queryFields': [{'field': 'appId', 'alias':
    '应用ID', 'dim': 'app_id', 'type': 'STRING'}, {'field': 'appInstanceId',
    'alias': '应用实例ID', 'dim': 'app_instance_id', 'type': 'STRING'}, {
    'field': 'podRamGbAllocation', 'alias': 'ram量', 'dim':
    'pod_ram_gb_allocation', 'type': 'DOUBLE'}, {'field':
    'podCpuCoreAllocation', 'alias': 'cpu量', 'dim':
    'pod_cpu_core_allocation', 'type': 'DOUBLE'}, {'field': 'id', 'alias':
    'id', 'dim': 'id', 'type': 'STRING'}, {'field': 'clusterId', 'alias':
    '集群ID', 'dim': 'cluster_id', 'type': 'STRING'}, {'field': 'timestamp',
    'alias': '时间戳', 'dim': 'timestamp', 'type': 'LONG'}, {'field':
    'podPVCGbAllocation', 'alias': 'pvc量', 'dim': 'pod_pvc_gb_allocation',
    'type': 'DOUBLE'}, {'field': 'cpuEfficiency', 'alias': 'CPU水位', 'dim':
    'cpu_efficiency', 'type': 'DOUBLE'}, {'field': 'ramEfficiency', 'alias':
    'ram水位', 'dim': 'ram_efficiency', 'type': 'DOUBLE'}, {'field':
    'podCpuCoreUsageAvg', 'alias': 'cpu平均使用core数', 'dim':
    'pod_cpu_core_usage_avg', 'type': 'DOUBLE'}, {'field':
    'podRamGbUsageAvg', 'alias': 'ram平均使用GB', 'dim': 'pod_ram_gb_usage_avg',
    'type': 'DOUBLE'}], 'requestMethod': 'GET', 'lastModifier': '999999999',
    'paging': True, 'qlTemplate':
    'timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'dws_cost_pod_resource_allocation_stats_1d',
    'buildIn': True, 'mode': 'guide', 'dataSourceId': '1', 'name':
    'pod_resource_allocation_stats', 'alias': 'pod资源分配统计', 'responseParams':
    ['appId', 'appInstanceId', 'podRamGbAllocation', 'podCpuCoreAllocation',
    'id', 'clusterId', 'timestamp', 'podPVCGbAllocation', 'cpuEfficiency',
    'ramEfficiency', 'podCpuCoreUsageAvg', 'podRamGbUsageAvg'],
    'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'defaultValue': '', 'name': 'sTimestamp', 'alias':
    '开始时间戳(毫秒)', 'type': 'LONG', 'required': True}, {'name': 'eTimestamp',
    'alias': '结束时间戳(毫秒)', 'type': 'LONG', 'required': True}, {
    'defaultValue': '*', 'name': 'appInstanceId', 'alias': '应用实例ID', 'type':
    'STRING', 'required': True}], 'groupFields': [], 'sortFields': []}, {
    'creator': '999999999', 'queryFields': [{'field': 'id', 'alias': '主键',
    'dim': 'id', 'type': 'STRING'}, {'field': 'clusterId', 'alias': '集群ID',
    'dim': 'cluster_id', 'type': 'STRING'}, {'field': 'monthlyRamPrice',
    'alias': 'ram月计价', 'dim': 'monthly_ram_price', 'type': 'DOUBLE'}, {
    'field': 'monthlyCpuPrice', 'alias': 'cpu月计价', 'dim':
    'monthly_cpu_price', 'type': 'DOUBLE'}, {'field': 'currency', 'alias':
    '货币', 'dim': 'currency', 'type': 'STRING'}, {'field':
    'monthlyStoragePrice', 'alias': 'storage月计价', 'dim':
    'monthly_storage_price', 'type': 'DOUBLE'}], 'requestMethod': 'GET',
    'lastModifier': '999999999', 'paging': True, 'qlTemplate': '*',
    'dataSourceTable': 'dim_cost_resource_price', 'buildIn': True, 'mode':
    'guide', 'dataSourceId': '1', 'name': 'resource_price', 'alias': '资源定价',
    'responseParams': ['id', 'clusterId', 'monthlyRamPrice',
    'monthlyCpuPrice', 'currency', 'monthlyStoragePrice'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [],
    'groupFields': [], 'sortFields': []}, {'creator': '999999999',
    'queryFields': [{'field': 'cpuCoreAllocation', 'alias': 'cpu量', 'dim':
    'cpu_core_allocation', 'type': 'DOUBLE', 'operator': 'sum'}, {'field':
    'ramGbAllocation', 'alias': 'ram量', 'dim': 'ram_gb_allocation', 'type':
    'DOUBLE', 'operator': 'sum'}, {'field': 'cpuCost', 'alias': 'cpu成本',
    'dim': 'cpu_cost', 'type': 'DOUBLE', 'operator': 'sum'}, {'field':
    'ramCost', 'alias': 'ram成本', 'dim': 'ram_cost', 'type': 'DOUBLE',
    'operator': 'sum'}, {'field': 'cost', 'alias': '总成本', 'dim': 'cost',
    'type': 'DOUBLE', 'operator': 'sum'}, {'field': 'pvcCost', 'alias':
    'pvc成本', 'dim': 'pvc_cost', 'type': 'DOUBLE', 'operator': 'sum'}, {
    'field': 'pvcGbAllocation', 'alias': 'pvc量', 'dim': 'pvc_gb_allocation',
    'type': 'DOUBLE', 'operator': 'sum'}, {'field': 'podCnt', 'alias':
    'pod数量', 'dim': 'pod_cnt', 'type': 'DOUBLE', 'operator': 'max'}],
    'requestMethod': 'GET', 'lastModifier': '999999999', 'paging': True,
    'qlTemplate':
    'timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND  app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'ads_app_cost', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_cost', 'alias': '应用成本',
    'responseParams': ['cpuCoreAllocation', 'ramGbAllocation', 'cpuCost',
    'ramCost', 'cost', 'currency', 'pvcCost', 'pvcGbAllocation', 'podCnt',
    'appInstanceId'], 'contentType': 'application/json', 'dataSourceType':
    'es', 'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)',
    'type': 'LONG', 'required': True}, {'name': 'eTimestamp', 'alias':
    '结束时间戳(ms)', 'type': 'LONG', 'required': True}, {'defaultValue': '*',
    'name': 'appInstanceId', 'alias': '应用实例ID', 'type': 'STRING',
    'required': True}], 'groupFields': [{'field': 'appInstanceId', 'alias':
    '应用实例ID', 'dim': 'app_instance_id', 'type': 'STRING', 'operator':
    'terms'}, {'field': 'currency', 'alias': '货币单位', 'dim': 'currency',
    'type': 'STRING', 'operator': 'terms'}], 'sortFields': []}, {'creator':
    '999999999', 'queryFields': [{'field': 'podName', 'alias': 'POD名称',
    'dim': 'prometheus.labels.pod', 'type': 'STRING'}, {'field': 'appId',
    'alias': '应用ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appId', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_componentName',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appComponentInstanceId', 'alias':
    '应用组件实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称',
    'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName',
    'type': 'STRING'}, {'field': 'clusterId', 'alias': '集群ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_clusterId', 'type':
    'STRING'}, {'field': 'namespace', 'alias': '命名空间', 'dim':
    'prometheus.labels.namespace', 'type': 'STRING'}, {'field':
    'podPVCGbHoursAllocation', 'alias': 'pvc分配量', 'dim':
    'prometheus.query.pod_pvc_gb_hours_allocation', 'type': 'DOUBLE'}, {
    'field': 'timestamp', 'alias': '计算时间戳', 'dim': '@timestamp', 'type':
    'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_pvc_gb_hours_allocation:*'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'pod_pvc_gb_hours_allocation', 'alias':
    'POD_PVC_GB分配查询(小时)', 'responseParams': ['podName', 'appId',
    'appComponentName', 'appInstanceId', 'appComponentInstanceId',
    'appInstanceName', 'clusterId', 'namespace', 'podPVCGbHoursAllocation',
    'timestamp'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}], 'groupFields': [], 'sortFields': []
    }, {'creator': '999999999', 'queryFields': [{'field': 'podName',
    'alias': 'POD名称', 'dim': 'prometheus.labels.pod', 'type': 'STRING'}, {
    'field': 'appId', 'alias': '应用ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appId', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_componentName',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appComponentInstanceId', 'alias':
    '应用组件实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称',
    'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName',
    'type': 'STRING'}, {'field': 'clusterId', 'alias': '集群ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_clusterId', 'type':
    'STRING'}, {'field': 'namespace', 'alias': '命名空间', 'dim':
    'prometheus.labels.namespace', 'type': 'STRING'}, {'field':
    'podCpuCoreHoursUsageAvg', 'alias': 'cpu_core使用量', 'dim':
    'prometheus.query.pod_cpu_core_hours_usage_avg', 'type': 'DOUBLE'}, {
    'field': 'timestamp', 'alias': '时间戳', 'dim': '@timestamp', 'type':
    'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_cpu_core_hours_usage_avg:*'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'pod_cpu_core_hours_usage_avg', 'alias':
    'POD_CPU_CORE使用量查询(小时)', 'responseParams': ['podName', 'appId',
    'appComponentName', 'appInstanceId', 'appComponentInstanceId',
    'appInstanceName', 'clusterId', 'namespace', 'podCpuCoreHoursUsageAvg',
    'timestamp'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}]}, {'creator': '999999999',
    'queryFields': [{'field': 'podName', 'alias': 'POD名称', 'dim':
    'prometheus.labels.pod', 'type': 'STRING'}, {'field': 'appId', 'alias':
    '应用ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appId', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_componentName',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appComponentInstanceId', 'alias':
    '应用组件实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称',
    'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName',
    'type': 'STRING'}, {'field': 'clusterId', 'alias': '集群ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_clusterId', 'type':
    'STRING'}, {'field': 'namespace', 'alias': '命名空间', 'dim':
    'prometheus.labels.namespace', 'type': 'STRING'}, {'field':
    'podRamGbHoursUsageAvg', 'alias': 'ram使用量', 'dim':
    'prometheus.query.pod_ram_gb_hours_usage_avg', 'type': 'DOUBLE'}, {
    'field': 'timestamp', 'alias': '计算时间戳', 'dim': '@timestamp', 'type':
    'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_ram_gb_hours_usage_avg:*'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'pod_ram_gb_hours_usage_avg', 'alias':
    'POD_RAM_GB使用量查询(小时)', 'responseParams': ['podName', 'appId',
    'appComponentName', 'appInstanceId', 'appComponentInstanceId',
    'appInstanceName', 'clusterId', 'namespace', 'podRamGbHoursUsageAvg',
    'timestamp'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}]}, {'creator': '999999999',
    'queryFields': [{'field': 'cpuCoreAllocation', 'alias': 'cpu量', 'dim':
    'cpu_core_allocation', 'type': 'DOUBLE', 'operator': ''}, {'field':
    'ramGbAllocation', 'alias': 'ram量', 'dim': 'ram_gb_allocation', 'type':
    'DOUBLE', 'operator': ''}, {'field': 'pvcGbAllocation', 'alias': 'pvc量',
    'dim': 'pvc_gb_allocation', 'type': 'DOUBLE', 'operator': ''}, {'field':
    'ramGbUsageAvg', 'alias': 'ram使用', 'dim': 'ram_gb_usage_avg', 'type':
    'DOUBLE'}, {'field': 'cpuCoreUsageAvg', 'alias': 'cpu使用', 'dim':
    'cpu_core_usage_avg', 'type': 'DOUBLE'}, {'field': 'cpuEfficiency',
    'alias': 'cpu水位', 'dim': 'cpu_efficiency', 'type': 'DOUBLE'}, {'field':
    'ramEfficiency', 'alias': 'ram水位', 'dim': 'ram_efficiency', 'type':
    'DOUBLE'}, {'field': 'timestamp', 'alias': '时间戳', 'dim': 'timestamp',
    'type': 'LONG'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'app_instance_id', 'type': 'STRING'}], 'requestMethod': 'GET',
    'lastModifier': '999999999', 'paging': True, 'qlTemplate':
    'timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND  app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'ads_app_cost', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_resource', 'alias': '应用资源',
    'responseParams': ['cpuCoreAllocation', 'ramGbAllocation',
    'pvcGbAllocation', 'appInstanceId', 'ramGbUsageAvg', 'cpuCoreUsageAvg',
    'cpuEfficiency', 'ramEfficiency', 'timestamp'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [{'name':
    'sTimestamp', 'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True},
    {'name': 'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required':
    True}, {'defaultValue': '*', 'name': 'appInstanceId', 'alias': '应用实例ID',
    'type': 'STRING', 'required': True}], 'groupFields': [], 'sortFields':
    [{'dim': 'timestamp', 'order': 'asc'}]}, {'creator': '999999999',
    'queryFields': [{'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'app_instance_id', 'type': 'STRING'}, {'field':
    'riskInstanceCntDailyAdditions', 'alias': '每日新增风险实例数量', 'dim':
    'risk_instance_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'alertInstanceCntDailyAdditions', 'alias': '每日新增告警实例数量', 'dim':
    'alert_instance_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'incidentInstanceCntDailyAdditions', 'alias': '每日新增异常实例数量', 'dim':
    'incident_instance_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'failureInstanceCntDailyAdditions', 'alias': '每日新增故障实例数量', 'dim':
    'failure_instance_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'timestamp', 'alias': '时间戳', 'dim': 'timestamp', 'type': 'LONG'}],
    'requestMethod': 'GET', 'lastModifier': '999999999', 'paging': True,
    'qlTemplate':
    'timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'ads_app_health', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_health', 'alias': '应用健康',
    'responseParams': ['appInstanceId', 'timestamp',
    'riskInstanceCntDailyAdditions', 'alertInstanceCntDailyAdditions',
    'incidentInstanceCntDailyAdditions', 'failureInstanceCntDailyAdditions'
    ], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间(ms)',
    'type': 'LONG', 'required': True}, {'defaultValue': '*', 'name':
    'appInstanceId', 'alias': '应用实例ID', 'type': 'STRING', 'required': True}
    ], 'groupFields': [], 'sortFields': [{'dim': 'timestamp', 'order':
    'asc'}]}, {'creator': '999999999', 'queryFields': [{'field': 'teamId',
    'alias': '团队ID', 'dim': 'team_id', 'type': 'INT'}, {'field': 'user',
    'alias': '用户ID', 'dim': 'user', 'type': 'STRING'}, {'field': 'role',
    'alias': '用户角色', 'dim': 'role', 'type': 'STRING'}], 'requestMethod':
    'GET', 'lastModifier': '999999999', 'paging': True, 'qlTemplate': '1=1',
    'dataSourceTable': 'team_user', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '2', 'name': 'team_user', 'alias': '团队用户',
    'responseParams': ['teamId', 'user', 'role'], 'contentType':
    'application/json', 'dataSourceType': 'mysql'}, {'creator': '999999999',
    'queryFields': [{'field': 'appId', 'alias': '应用ID', 'dim': 'app_id',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'app_instance_id', 'type': 'STRING'}, {'field': 'appInstanceName',
    'alias': '应用实例名称', 'dim': 'app_instance_name', 'type': 'STRING'}, {
    'field': 'deliveryCntDailyAdditions', 'alias': '每日新增构建次数', 'dim':
    'delivery_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'deliverySuccessCntDailyAdditions', 'alias': '每日新增成功构建次数', 'dim':
    'delivery_success_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'deliverySuccessRateDaily', 'alias': '每日构建成功率', 'dim':
    'delivery_success_rate_daily', 'type': 'DOUBLE'}, {'field':
    'deploymentCntDailyAdditions', 'alias': '每日新增部署次数', 'dim':
    'deployment_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'deploymentSuccessCntDailyAdditions', 'alias': '每日新增成功部署次数', 'dim':
    'deployment_success_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'deploymentSuccessRateDaily', 'alias': '每日部署成功率', 'dim':
    'deployment_success_rate_daily', 'type': 'DOUBLE'}, {'field':
    'timestamp', 'alias': '统计时间', 'dim': 'timestamp', 'type': 'LONG'}, {
    'field': 'teamId', 'alias': '团队ID', 'dim': 'team_id', 'type': 'LONG'}],
    'requestMethod': 'GET', 'lastModifier': '999999999', 'paging': True,
    'qlTemplate':
    'timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'ads_app_delivery_deployment_quality', 'buildIn': 
    True, 'mode': 'guide', 'dataSourceId': '1', 'name':
    'app_delivery_deployment_quality', 'alias': '应用交付部署质量',
    'responseParams': ['appInstanceId', 'appInstanceName',
    'deliveryCntDailyAdditions', 'deliverySuccessCntDailyAdditions',
    'deliverySuccessRateDaily', 'deploymentCntDailyAdditions',
    'deploymentSuccessCntDailyAdditions', 'deploymentSuccessRateDaily',
    'timestamp', 'teamId', 'appId'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'sTimestamp',
    'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name':
    'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True},
    {'defaultValue': '*', 'name': 'appInstanceId', 'alias': '应用实例ID',
    'type': 'STRING', 'required': True}], 'groupFields': [], 'sortFields':
    []}, {'creator': '999999999', 'queryFields': [{'field': 'appId',
    'alias': '应用ID', 'dim': 'app_id', 'type': 'STRING'}, {'field':
    'appInstanceId', 'alias': '应用实例ID', 'dim': 'app_instance_id', 'type':
    'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称', 'dim':
    'app_instance_name', 'type': 'STRING'}, {'field':
    'deliveryCntDailyAdditions', 'alias': '每日新增构建次数', 'dim':
    'delivery_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'deploymentCntDailyAdditions', 'alias': '每日新增部署次数', 'dim':
    'deployment_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'hrEffectivenessRatioDaily', 'alias': '每日人效比', 'dim':
    'hr_effectiveness_ratio_daily', 'type': 'DOUBLE'}, {'field':
    'timestamp', 'alias': '统计时间', 'dim': 'timestamp', 'type': 'LONG'}, {
    'field': 'teamId', 'alias': '团队ID', 'dim': 'team_id', 'type': 'LONG'},
    {'field': 'teamMemberCnt', 'alias': '团队成员数', 'dim': 'team_member_cnt',
    'type': 'INT'}], 'requestMethod': 'GET', 'lastModifier': '999999999',
    'paging': True, 'qlTemplate':
    'timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'ads_app_delivery_deployment_efficiency',
    'buildIn': True, 'mode': 'guide', 'dataSourceId': '1', 'name':
    'app_delivery_deployment_efficiency', 'alias': '应用交付部署效能',
    'responseParams': ['appInstanceId', 'appInstanceName',
    'deliveryCntDailyAdditions', 'deploymentCntDailyAdditions', 'timestamp',
    'teamId', 'appId', 'teamMemberCnt', 'hrEffectivenessRatioDaily'],
    'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}, {'defaultValue': '*', 'name':
    'appInstanceId', 'alias': '应用实例ID', 'type': 'STRING', 'required': True}
    ], 'groupFields': [], 'sortFields': []}, {'creator': '999999999',
    'queryFields': [{'field': 'metricId', 'alias': '指标定义ID', 'dim':
    'metric_id', 'type': 'INT'}, {'field': 'instanceId', 'alias': '指标实例ID',
    'dim': 'uid', 'type': 'STRING'}, {'field': 'metricType', 'alias':
    '指标类型', 'dim': 'type', 'type': 'STRING'}, {'field': 'timestamp',
    'alias': '采集时间戳', 'dim': 'timestamp', 'type': 'LONG'}, {'field':
    'value', 'alias': '指标值', 'dim': 'value', 'type': 'DOUBLE'}, {'field':
    'labels', 'alias': '实例标签', 'dim': 'labels', 'type': 'OBJECT'}],
    'requestMethod': 'GET', 'lastModifier': '999999999', 'paging': True,
    'qlTemplate':
    'timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND metric_id:{{metricId}} AND labels.{{labelName}}:{{labelValue}}'
    , 'dataSourceTable': 'dwd_original_metric_data_di', 'buildIn': True,
    'mode': 'guide', 'dataSourceId': '1', 'name': 'metric_data', 'alias':
    '指标数据接口', 'responseParams': ['metricId', 'instanceId', 'metricType',
    'timestamp', 'value', 'labels'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'sTimestamp',
    'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name':
    'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True},
    {'defaultValue': '', 'name': 'metricId', 'alias': '指标ID', 'type': 'INT',
    'required': True}, {'name': 'labelName', 'alias': '指标标签KEY', 'type':
    'STRING', 'required': True}, {'defaultValue': '*', 'name': 'labelValue',
    'alias': '指标标签VALUE', 'type': 'STRING', 'required': False}],
    'groupFields': [], 'sortFields': [{'dim': 'timestamp', 'order': 'asc'}]
    }, {'creator': '999999999', 'queryFields': [{'field': 'instanceId',
    'alias': '指标实例ID', 'dim': 'uid', 'type': 'STRING'}, {'field':
    'metricType', 'alias': '指标类型', 'dim': 'type', 'type': 'STRING'}, {
    'field': 'timestamp', 'alias': '采集时间戳', 'dim': 'timestamp', 'type':
    'LONG'}, {'field': 'value', 'alias': '指标值', 'dim': 'value', 'type':
    'DOUBLE'}, {'field': 'labels', 'alias': '实例标签', 'dim': 'labels', 'type':
    'OBJECT'}], 'requestMethod': 'GET', 'lastModifier': '999999999',
    'paging': True, 'qlTemplate':
    'timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND metric_name:{{metricName}} AND labels.app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'dwd_original_metric_data_di', 'buildIn': True,
    'mode': 'guide', 'dataSourceId': '1', 'name': 'app_metric_data',
    'alias': '应用指标数据接口', 'responseParams': ['instanceId', 'metricType',
    'timestamp', 'value', 'labels'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'sTimestamp',
    'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name':
    'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True},
    {'defaultValue': '*', 'name': 'appInstanceId', 'alias': '应用实例ID',
    'type': 'STRING', 'required': False}, {'defaultValue': '*', 'name':
    'metricName', 'alias': '指标名称', 'type': 'STRING', 'required': False}],
    'groupFields': [], 'sortFields': [{'dim': 'timestamp', 'order': 'asc'}]
    }, {'creator': '999999999', 'queryFields': [{'field': 'id', 'alias':
    '事件ID', 'dim': 'id', 'type': 'STRING'}, {'field': 'namespace', 'alias':
    '命名空间', 'dim': 'namespace', 'type': 'STRING'}, {'field': 'podName',
    'alias': 'pod名称', 'dim': 'pod_name', 'type': 'STRING'}, {'field':
    'type', 'alias': '事件类型', 'dim': 'type', 'type': 'STRING'}, {'field':
    'reason', 'alias': '事件原因', 'dim': 'reason', 'type': 'STRING'}, {'field':
    'message', 'alias': '事件详情', 'dim': 'message', 'type': 'STRING'}, {
    'field': 'gmtOccur', 'alias': '发生时间', 'dim': 'gmt_occur', 'type':
    'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    True, 'qlTemplate': 'gmt_occur [{{sTimestamp}} TO {{eTimestamp}}}',
    'dataSourceTable': 'dwd_original_pod_event_di', 'buildIn': True, 'mode':
    'guide', 'dataSourceId': '1', 'name': 'pod_event', 'alias': 'POD事件明细',
    'responseParams': ['id', 'namespace', 'podName', 'type', 'reason',
    'gmtOccur', 'message'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'sTimestamp',
    'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name':
    'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True}],
    'groupFields': [], 'sortFields': [{'dim': 'gmt_occur', 'order': 'asc'}]
    }, {'creator': '999999999', 'queryFields': [{'field': 'appId', 'alias':
    '应用ID', 'dim': 'kubernetes.labels.labels_appmanager_oam_dev/appId',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/appInstanceId', 'type':
    'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/appInstanceName', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/componentName', 'type':
    'STRING'}, {'field': 'appComponentInstanceId', 'alias': '应用组件实例ID',
    'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/componentInstanceId',
    'type': 'STRING'}, {'field': 'namespace', 'alias': '命名空间', 'dim':
    'kubernetes.namespace', 'type': 'STRING'}, {'field': 'podName', 'alias':
    'POD名称', 'dim': 'kubernetes.pod.name', 'type': 'STRING'}, {'field':
    'podStatus', 'alias': 'POD状态', 'dim': 'kubernetes.pod.status', 'type':
    'OBJECT'}, {'field': 'timestamp', 'alias': '时间戳', 'dim': '@timestamp',
    'type': 'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999',
    'paging': True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:state_pod AND kubernetes.labels.stageId:prod AND kubernetes.labels.labels_appmanager_oam_dev\\/appId:{{appId}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': False, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'pod_status', 'alias': 'POD状态明细',
    'responseParams': ['appInstanceId', 'appInstanceName',
    'appComponentName', 'appComponentInstanceId', 'namespace', 'podName',
    'podStatus', 'timestamp', 'appId'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'sTimestamp',
    'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name':
    'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True},
    {'defaultValue': '*', 'name': 'appId', 'alias': '应用ID', 'type':
    'STRING', 'required': True}], 'groupFields': [], 'sortFields': []}]


def add_interfaces():
    url = host['dataset'] + '/interfaceConfig_v2/createConfig'
    for interface in interfaces:
        r = requests.post(url, headers=headers, json=interface)
        if r.status_code == 200:
            print(r.json())

import requests
from common.constant import host
headers = {}
interfaces = [{'creator': '999999999', 'queryFields': [{'field':
    'action_meta_data', 'alias': '操作详情元数据', 'dim': 'action_meta_data',
    'type': 'OBJECT'}, {'field': 'action_type', 'alias': '操作类型', 'dim':
    'action_type', 'type': 'STRING'}, {'field': 'action_label', 'alias':
    '操作标签', 'dim': 'action_label', 'type': 'STRING'}, {'field':
    'action_name', 'alias': '操作名称', 'dim': 'action_name', 'type': 'STRING'},
    {'field': 'exec_data', 'alias': '执行返回数据', 'dim': 'exec_data', 'type':
    'OBJECT'}, {'field': 'create_time', 'alias': '执行返回数据', 'dim':
    'create_time', 'type': 'LONG'}, {'field': 'processor', 'alias': '操作人',
    'dim': 'processor', 'type': 'OBJECT'}, {'field': 'params', 'alias':
    '操作参数', 'dim': 'action_meta_data.params', 'type': 'OBJECT'}, {'field':
    'start_time', 'alias': '开始时间', 'dim': 'start_time', 'type': 'LONG'}, {
    'field': 'end_time', 'alias': '结束时间', 'dim': 'end_time', 'type': 'LONG'
    }], 'requestMethod': 'POST', 'lastModifier': '999999999', 'paging': 
    True, 'qlTemplate': '{{query}}', 'dataSourceTable': 'sreworks_action',
    'buildIn': True, 'mode': 'guide', 'dataSourceId': '1', 'name': 'action',
    'alias': '操作明细', 'responseParams': ['action_meta_data', 'action_type',
    'action_label', 'action_name', 'exec_data', 'create_time', 'processor',
    'params', 'start_time', 'end_time'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'query', 'alias':
    '查询条件', 'type': 'STRING', 'required': True}], 'groupFields': [],
    'sortFields': [{'dim': 'create_time', 'order': 'desc'}]}, {'creator':
    '999999999', 'queryFields': [{'field': 'id', 'alias': '团队ID', 'dim':
    'id', 'type': 'STRING'}, {'field': 'name', 'alias': '团队名称', 'dim':
    'name', 'type': 'STRING'}, {'field': 'avatar', 'alias': '头像', 'dim':
    'avatar', 'type': 'STRING'}, {'field': 'visible_scope', 'alias': '可见属性',
    'dim': 'visible_scope', 'type': 'STRING'}, {'field': 'creator', 'alias':
    '创建人', 'dim': 'creator', 'type': 'STRING'}, {'field': 'gmt_create',
    'alias': '创建时间', 'dim': 'gmt_create', 'type': 'DATE'}, {'field':
    'last_modifier', 'alias': '最近修改人', 'dim': 'last_modifier', 'type':
    'STRING'}, {'field': 'gmt_modified', 'alias': '最近修改时间', 'dim':
    'gmt_modified', 'type': 'DATE'}, {'field': 'description', 'alias': '说明',
    'dim': 'description', 'type': 'STRING'}], 'requestMethod': 'GET',
    'lastModifier': '999999999', 'paging': False, 'qlTemplate':
    'ds:{{ds}} AND {{query}}', 'dataSourceTable': 'ods_team', 'buildIn': 
    True, 'mode': 'guide', 'dataSourceId': '1', 'name': 'team', 'alias':
    '团队明细(数仓)', 'responseParams': ['id', 'name', 'avatar', 'visible_scope',
    'creator', 'gmt_create', 'last_modifier', 'gmt_modified', 'description'
    ], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'defaultValue': '*', 'name': 'query', 'alias':
    '查询条件', 'type': 'STRING', 'required': False}, {'name': 'ds', 'alias':
    '时间分区', 'type': 'STRING', 'required': True}]}, {'creator': '999999999',
    'queryFields': [{'field': 'id', 'alias': '应用ID', 'dim': 'id', 'type':
    'STRING'}, {'field': 'name', 'alias': '应用名称', 'dim': 'name', 'type':
    'STRING'}, {'field': 'labels', 'alias': '应用标签', 'dim': 'labels', 'type':
    'OBJECT'}, {'field': 'detail', 'alias': '应用详情', 'dim': 'detail', 'type':
    'OBJECT'}, {'field': 'team_id', 'alias': '归属应用ID', 'dim': 'team_id',
    'type': 'OBJECT'}, {'field': 'creator', 'alias': '创建人', 'dim':
    'creator', 'type': 'STRING'}, {'field': 'last_modifier', 'alias':
    '最近修改人', 'dim': 'last_modifier', 'type': 'STRING'}, {'field':
    'gmt_create', 'alias': '创建时间', 'dim': 'gmt_create', 'type': 'DATE'}, {
    'field': 'gmt_modified', 'alias': '最近修改时间', 'dim': 'gmt_modified',
    'type': 'DATE'}, {'field': 'display', 'alias': '可见', 'dim': 'display',
    'type': 'BOOLEAN'}, {'field': 'annotations', 'alias': '应用注解', 'dim':
    'annotations', 'type': 'OBJECT'}, {'field': 'description', 'alias':
    '应用描述', 'dim': 'description', 'type': 'STRING'}], 'requestMethod':
    'GET', 'lastModifier': '999999999', 'paging': False, 'qlTemplate':
    'ds:{{ds}} AND {{query}}', 'dataSourceTable': 'ods_app', 'buildIn': 
    True, 'mode': 'guide', 'dataSourceId': '1', 'name': 'app', 'alias':
    '应用明细(数仓)', 'responseParams': ['id', 'name', 'labels', 'detail',
    'team_id', 'creator', 'last_modifier', 'gmt_create', 'gmt_modified',
    'display', 'annotations', 'description'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [{
    'defaultValue': '*', 'name': 'query', 'alias': '查询条件', 'type': 'STRING',
    'required': False}, {'name': 'ds', 'alias': '时间分区', 'type': 'STRING',
    'required': True}]}, {'creator': '999999999', 'queryFields': [{'field':
    'id', 'alias': '集群ID', 'dim': 'id', 'type': 'STRING'}, {'field': 'name',
    'alias': '集群名称', 'dim': 'name', 'type': 'STRING'}, {'field':
    'cluster_name', 'alias': '集群code', 'dim': 'cluster_name', 'type':
    'STRING'}, {'field': 'account_id', 'alias': '关联账户', 'dim': 'account_id',
    'type': 'STRING'}, {'field': 'team_id', 'alias': '归属团队ID', 'dim':
    'team_id', 'type': 'STRING'}], 'requestMethod': 'GET', 'lastModifier':
    '999999999', 'paging': False, 'qlTemplate': 'ds:{{ds}} AND {{query}}',
    'dataSourceTable': 'ods_cluster', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'cluster', 'alias': '集群明细(数仓)',
    'responseParams': ['id', 'name', 'cluster_name', 'account_id',
    'team_id'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'ds', 'alias': '时间分区', 'type': 'STRING',
    'required': True}, {'defaultValue': '*', 'name': 'query', 'alias':
    '查询条件', 'type': 'STRING', 'required': False}]}, {'creator': '999999999',
    'queryFields': [{'field': 'id', 'alias': '应用ID', 'dim': 'id', 'type':
    'STRING'}, {'field': 'name', 'alias': '应用名称', 'dim': 'name', 'type':
    'STRING'}, {'field': 'team_id', 'alias': '归属团队', 'dim': 'team_id',
    'type': 'STRING'}], 'requestMethod': 'GET', 'lastModifier': '999999999',
    'paging': False, 'qlTemplate': '1=1', 'dataSourceTable': 'app',
    'buildIn': True, 'mode': 'guide', 'dataSourceId': '2', 'name':
    'sreworks_app', 'alias': '应用明细', 'responseParams': ['id', 'name',
    'team_id'], 'contentType': 'application/json', 'dataSourceType':
    'mysql', 'requestParams': [], 'groupFields': [], 'sortFields': []}, {
    'creator': '999999999', 'queryFields': [{'field': 'cpuPct', 'alias':
    '使用率', 'dim': 'host.cpu.pct', 'type': 'FLOAT', 'operator': 'max'}],
    'requestMethod': 'GET', 'lastModifier': '999999999', 'paging': False,
    'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:system AND metricset.name:cpu AND host.name:{{hostname}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'node_cpu_usage_1d', 'alias':
    '节点CPU使用率(天)', 'responseParams': ['timestamp', 'hostname', 'cpuPct'],
    'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'defaultValue': '', 'name': 'sTimestamp', 'alias':
    '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name': 'eTimestamp',
    'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True}, {
    'defaultValue': '*', 'name': 'hostname', 'alias': '节点名称', 'type':
    'STRING', 'required': False}], 'groupFields': [{'field': 'timestamp',
    'granularity': '1d', 'alias': '时间戳', 'dim': '@timestamp', 'type':
    'LONG', 'operator': 'date_histogram'}, {'field': 'hostname', 'alias':
    '节点名称', 'dim': 'host.name', 'type': 'STRING', 'operator': 'terms'}],
    'sortFields': []}, {'creator': '999999999', 'queryFields': [{'field':
    'name', 'alias': '资源实例名称', 'dim':
    'kubernetes.event.involved_object.name', 'type': 'STRING'}, {'field':
    'namespace', 'alias': '资源空间', 'dim':
    'kubernetes.event.metadata.namespace', 'type': 'STRING'}, {'field':
    'gmtOccur', 'alias': '发生时间', 'dim':
    'kubernetes.event.timestamp.last_occurrence', 'type': 'LONG'}, {'field':
    'type', 'alias': '类型', 'dim': 'kubernetes.event.type', 'type': 'STRING'
    }, {'field': 'reason', 'alias': '原因', 'dim': 'kubernetes.event.reason',
    'type': 'STRING'}, {'field': 'message', 'alias': '详情', 'dim':
    'kubernetes.event.message', 'type': 'STRING'}, {'field': 'kind',
    'alias': '资源类型', 'dim': 'kubernetes.event.involved_object.kind', 'type':
    'STRING'}, {'field': 'uid', 'alias': '事件对象id', 'dim':
    'kubernetes.event.metadata.uid', 'type': 'STRING'}], 'requestMethod':
    'GET', 'lastModifier': '999999999', 'paging': True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:event AND kubernetes.event.involved_object.kind:{{kind}} AND kubernetes.event.metadata.namespace:{{namespace}} AND kubernetes.event.involved_object.name:{{name}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'kubernetes_event', 'alias':
    'kubernetes事件明细', 'responseParams': ['name', 'namespace', 'type',
    'reason', 'message', 'kind', 'uid', 'gmtOccur'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [{'name':
    'sTimestamp', 'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True},
    {'name': 'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required':
    True}, {'defaultValue': '*', 'name': 'kind', 'alias': '资源类型', 'type':
    'STRING', 'required': False}, {'defaultValue': '*', 'name': 'namespace',
    'alias': '资源空间', 'type': 'STRING', 'required': False}, {'defaultValue':
    '*', 'name': 'name', 'alias': '资源实例名称', 'type': 'STRING', 'required': 
    False}], 'groupFields': [], 'sortFields': []}, {'creator': '999999999',
    'queryFields': [{'field': 'timestamp', 'alias': '时间戳', 'dim':
    'timestamp', 'type': 'LONG'}, {'field': 'appId', 'alias': '应用ID', 'dim':
    'app_id', 'type': 'STRING'}, {'field': 'appComponentName', 'alias':
    '组件名称', 'dim': 'app_component_name', 'type': 'STRING'}, {'field':
    'namespace', 'alias': '命名空间', 'dim': 'namespace', 'type': 'STRING'}, {
    'field': 'podName', 'alias': 'POD名称', 'dim': 'pod_name', 'type':
    'STRING'}, {'field': 'podPhase', 'alias': 'POD状态阶段', 'dim': 'pod_phase',
    'type': 'STRING'}, {'field': 'podReady', 'alias': 'POD就绪', 'dim':
    'pod_ready', 'type': 'STRING'}, {'field': 'appInstanceId', 'alias':
    '应用实例ID', 'dim': 'app_instance_id', 'type': 'STRING'}, {'field':
    'appInstanceName', 'alias': '应用实例名称', 'dim': 'app_instance_name',
    'type': 'STRING'}, {'field': 'appComponentInstanceId', 'alias':
    '应用组件ID', 'dim': 'app_component_instance_id', 'type': 'STRING'}],
    'requestMethod': 'GET', 'lastModifier': '999999999', 'paging': True,
    'qlTemplate':
    'timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_id:{{appId}} AND app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'dwd_original_app_pod_status_di', 'buildIn': True,
    'mode': 'guide', 'dataSourceId': '1', 'name': 'app_pod_status', 'alias':
    '应用POD状态明细', 'responseParams': ['timestamp', 'appId',
    'appComponentName', 'appInstanceId', 'appInstanceName',
    'appComponentInstanceId', 'namespace', 'podName', 'podPhase',
    'podReady'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}, {'defaultValue': '*', 'name':
    'appId', 'alias': '应用ID', 'type': 'STRING', 'required': False}, {
    'defaultValue': '*', 'name': 'appInstanceId', 'alias': '应用实例ID', 'type':
    'STRING', 'required': False}], 'groupFields': [], 'sortFields': []}, {
    'creator': '999999999', 'queryFields': [{'field': 'cpuPct', 'alias':
    'CPU使用率', 'dim': 'kubernetes.pod.cpu.usage.node.pct', 'type': 'FLOAT',
    'operator': 'max'}], 'requestMethod': 'GET', 'lastModifier':
    '999999999', 'paging': False, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.labels.labels_appmanager_oam_dev\\/appId:{{appId}} AND kubernetes.labels.componentName:{{componentName}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_component_pod_cpu_usage_1d', 'alias':
    '应用组件POD CPU使用率(天)', 'responseParams': ['timestamp', 'appId',
    'componentName', 'podName', 'cpuPct'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [{'name':
    'sTimestamp', 'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True},
    {'name': 'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required':
    True}, {'defaultValue': '*', 'name': 'appId', 'alias': '应用ID', 'type':
    'STRING', 'required': False}, {'defaultValue': '*', 'name':
    'componentName', 'alias': '组件名称', 'type': 'STRING', 'required': False}],
    'groupFields': [{'field': 'timestamp', 'granularity': '1d', 'alias':
    '时间戳', 'dim': '@timestamp', 'type': 'LONG', 'operator':
    'date_histogram'}, {'field': 'appId', 'alias': '应用ID', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/appId', 'type': 'STRING',
    'operator': 'terms'}, {'field': 'componentName', 'alias': '组件名称', 'dim':
    'kubernetes.labels.componentName', 'type': 'STRING', 'operator':
    'terms'}, {'field': 'podName', 'alias': 'POD名称', 'dim':
    'kubernetes.pod.name', 'type': 'STRING', 'operator': 'terms'}],
    'sortFields': []}, {'creator': '999999999', 'queryFields': [{'field':
    'timestamp', 'alias': '时间戳', 'dim': '@timestamp', 'type': 'LONG',
    'operator': 'max'}], 'requestMethod': 'GET', 'lastModifier':
    '999999999', 'paging': True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.namespace:{{namespace}} AND kubernetes.labels.labels_appmanager_oam_dev\\/appId:{{appId}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_pod', 'alias': '应用POD实例',
    'responseParams': ['timestamp', 'namespace', 'appId',
    'appComponentName', 'podName', 'appInstanceId',
    'appComponentInstanceId'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'sTimestamp',
    'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name':
    'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True},
    {'defaultValue': '*', 'name': 'namespace', 'alias': '命名空间', 'type':
    'STRING', 'required': False}, {'defaultValue': '*', 'name': 'appId',
    'alias': '应用ID', 'type': 'STRING', 'required': False}], 'groupFields':
    [{'field': 'namespace', 'alias': '命名空间', 'dim': 'kubernetes.namespace',
    'type': 'STRING', 'operator': 'terms'}, {'field': 'appId', 'alias':
    '应用ID', 'dim': 'kubernetes.labels.labels_appmanager_oam_dev/appId',
    'type': 'STRING', 'operator': 'terms'}, {'field': 'appComponentName',
    'alias': '应用组件名称', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/componentName', 'type':
    'STRING', 'operator': 'terms'}, {'field': 'podName', 'alias': 'POD名称',
    'dim': 'kubernetes.pod.name', 'type': 'STRING', 'operator': 'terms'}, {
    'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/appInstanceId', 'type':
    'STRING', 'operator': 'terms'}, {'field': 'appComponentInstanceId',
    'alias': '应用组件实例ID', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/componentInstanceId',
    'type': 'STRING', 'operator': 'terms'}], 'sortFields': []}, {'creator':
    '999999999', 'queryFields': [{'field': 'cpuPct', 'alias': 'CPU使用率',
    'dim': 'kubernetes.pod.cpu.usage.node.pct', 'type': 'FLOAT', 'operator':
    'max'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    False, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.labels.labels_appmanager_oam_dev\\/appInstanceId:{{appInstanceId}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_instance_pod_cpu_usage_1d', 'alias':
    '应用实例CPU使用率(天)', 'responseParams': ['appInstanceId', 'timestamp',
    'cpuPct'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}, {'name': 'appInstanceId', 'alias':
    '应用实例ID', 'type': 'STRING', 'required': True}], 'groupFields': [{
    'field': 'timestamp', 'granularity': '1d', 'alias': '时间戳', 'dim':
    '@timestamp', 'type': 'LONG', 'operator': 'date_histogram'}, {'field':
    'appInstanceId', 'alias': '应用实例ID', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/appInstanceId', 'type':
    'STRING', 'operator': 'terms'}], 'sortFields': []}, {'creator':
    '999999999', 'queryFields': [{'field': 'cpuPct', 'alias': 'CPU使用率',
    'dim': 'kubernetes.pod.cpu.usage.node.pct', 'type': 'FLOAT', 'operator':
    'max'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    False, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.labels.labels_appmanager_oam_dev\\/appInstanceId:{{appInstanceId}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_instance_pod_cpu_usage_1h', 'alias':
    '应用实例CPU使用率(小时)', 'responseParams': ['appInstanceId', 'timestamp',
    'cpuPct'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}, {'name': 'appInstanceId', 'alias':
    '应用实例ID', 'type': 'STRING', 'required': True}], 'groupFields': [{
    'field': 'timestamp', 'granularity': '1h', 'alias': '时间戳', 'dim':
    '@timestamp', 'type': 'LONG', 'operator': 'date_histogram'}, {'field':
    'appInstanceId', 'alias': '应用实例ID', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/appInstanceId', 'type':
    'STRING', 'operator': 'terms'}], 'sortFields': []}, {'creator':
    '999999999', 'queryFields': [{'field': 'podName', 'alias': 'POD名称',
    'dim': 'prometheus.labels.pod', 'type': 'STRING'}, {'field': 'appId',
    'alias': '应用ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appId', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_componentName',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appComponentInstanceId', 'alias':
    '应用组件实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称',
    'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName',
    'type': 'STRING'}, {'field': 'clusterId', 'alias': '集群ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_clusterId', 'type':
    'STRING'}, {'field': 'namespace', 'alias': '命名空间', 'dim':
    'prometheus.labels.namespace', 'type': 'STRING'}, {'field':
    'podCpuCoreHoursAllocation', 'alias': 'cpu_core分配量', 'dim':
    'prometheus.query.pod_cpu_core_hours_allocation', 'type': 'DOUBLE'}, {
    'field': 'timestamp', 'alias': '时间戳', 'dim': '@timestamp', 'type':
    'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_cpu_core_hours_allocation:*'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'pod_cpu_core_hours_allocation', 'alias':
    'POD_CPU_CORE分配查询(小时)', 'responseParams': ['podName', 'appId',
    'appComponentName', 'appInstanceId', 'appComponentInstanceId',
    'appInstanceName', 'clusterId', 'namespace',
    'podCpuCoreHoursAllocation', 'timestamp'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [{'name':
    'sTimestamp', 'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True},
    {'name': 'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required':
    True}], 'groupFields': [], 'sortFields': []}, {'creator': '999999999',
    'queryFields': [{'field': 'podName', 'alias': 'POD名称', 'dim':
    'prometheus.labels.pod', 'type': 'STRING'}, {'field': 'appId', 'alias':
    '应用ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appId', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_componentName',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appComponentInstanceId', 'alias':
    '应用组件实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称',
    'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName',
    'type': 'STRING'}, {'field': 'clusterId', 'alias': '集群ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_clusterId', 'type':
    'STRING'}, {'field': 'namespace', 'alias': '命名空间', 'dim':
    'prometheus.labels.namespace', 'type': 'STRING'}, {'field':
    'podRamGbHoursAllocation', 'alias': 'ram分配量', 'dim':
    'prometheus.query.pod_ram_gb_hours_allocation', 'type': 'DOUBLE'}, {
    'field': 'timestamp', 'alias': '计算时间戳', 'dim': '@timestamp', 'type':
    'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_ram_gb_hours_allocation:*'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'pod_ram_gb_hours_allocation', 'alias':
    'POD_RAM_GB分配查询(小时)', 'responseParams': ['podName', 'appId',
    'appComponentName', 'appInstanceId', 'appComponentInstanceId',
    'appInstanceName', 'clusterId', 'namespace', 'podRamGbHoursAllocation',
    'timestamp'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}], 'groupFields': [], 'sortFields': []
    }, {'creator': '999999999', 'queryFields': [{'field':
    'podRamGbHoursAllocation', 'alias': 'ram分配GB', 'dim':
    'pod_ram_gb_hours_allocation', 'type': 'DOUBLE'}, {'field':
    'podCpuCoreHoursAllocation', 'alias': 'cpu_core分配', 'dim':
    'pod_cpu_core_hours_allocation', 'type': 'DOUBLE'}, {'field':
    'clusterId', 'alias': '集群ID', 'dim': 'cluster_id', 'type': 'STRING'}, {
    'field': 'namespace', 'alias': '命名空间', 'dim': 'namespace', 'type':
    'STRING'}, {'field': 'appId', 'alias': '应用ID', 'dim': 'app_id', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'app_component_name', 'type': 'STRING'}, {'field': 'appInstanceId',
    'alias': '应用实例ID', 'dim': 'app_instance_id', 'type': 'STRING'}, {
    'field': 'appInstanceName', 'alias': '应用实例名称', 'dim':
    'app_instance_name', 'type': 'STRING'}, {'field':
    'appComponentInstanceId', 'alias': '应用组件实例ID', 'dim':
    'app_component_instance_id', 'type': 'STRING'}, {'field': 'podName',
    'alias': 'pod名称', 'dim': 'pod_name', 'type': 'STRING'}, {'field':
    'timestamp', 'alias': '时间戳', 'dim': 'timestamp', 'type': 'LONG'}, {
    'field': 'podPVCGbHoursAllocation', 'alias': 'pvc用量GB', 'dim':
    'pod_pvc_gb_hours_allocation', 'type': 'DOUBLE'}, {'field':
    'podCpuCoreHoursUsageAvg', 'alias': 'cpu_core用量', 'dim':
    'pod_cpu_core_hours_usage_avg', 'type': 'DOUBLE'}, {'field':
    'podRamGbHoursUsageAvg', 'alias': 'ram用量GB', 'dim':
    'pod_ram_gb_hours_usage_avg', 'type': 'DOUBLE'}], 'requestMethod':
    'GET', 'lastModifier': '999999999', 'paging': True, 'qlTemplate':
    'timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_id:{{appId}}',
    'dataSourceTable': 'dwd_cost_pod_resource_allocation_di', 'buildIn': 
    True, 'mode': 'guide', 'dataSourceId': '1', 'name':
    'pod_resource_hours_allocation', 'alias': 'POD资源查询(小时)',
    'responseParams': ['clusterId', 'namespace', 'appId',
    'appComponentName', 'appInstanceId', 'appInstanceName',
    'appComponentInstanceId', 'podName', 'podRamGbHoursAllocation',
    'podCpuCoreHoursAllocation', 'timestamp', 'podPVCGbHoursAllocation',
    'podCpuCoreHoursUsageAvg', 'podRamGbHoursUsageAvg'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [{'name':
    'sTimestamp', 'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True},
    {'name': 'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required':
    True}, {'defaultValue': '*', 'name': 'appId', 'alias': '应用ID', 'type':
    'STRING', 'required': True}], 'groupFields': [], 'sortFields': []}, {
    'creator': '999999999', 'queryFields': [{'field': 'appId', 'alias':
    '应用ID', 'dim': 'app_id', 'type': 'STRING'}, {'field': 'appInstanceId',
    'alias': '应用实例ID', 'dim': 'app_instance_id', 'type': 'STRING'}, {
    'field': 'podRamGbAllocation', 'alias': 'ram量', 'dim':
    'pod_ram_gb_allocation', 'type': 'DOUBLE'}, {'field':
    'podCpuCoreAllocation', 'alias': 'cpu量', 'dim':
    'pod_cpu_core_allocation', 'type': 'DOUBLE'}, {'field': 'id', 'alias':
    'id', 'dim': 'id', 'type': 'STRING'}, {'field': 'clusterId', 'alias':
    '集群ID', 'dim': 'cluster_id', 'type': 'STRING'}, {'field': 'timestamp',
    'alias': '时间戳', 'dim': 'timestamp', 'type': 'LONG'}, {'field':
    'podPVCGbAllocation', 'alias': 'pvc量', 'dim': 'pod_pvc_gb_allocation',
    'type': 'DOUBLE'}, {'field': 'cpuEfficiency', 'alias': 'CPU水位', 'dim':
    'cpu_efficiency', 'type': 'DOUBLE'}, {'field': 'ramEfficiency', 'alias':
    'ram水位', 'dim': 'ram_efficiency', 'type': 'DOUBLE'}, {'field':
    'podCpuCoreUsageAvg', 'alias': 'cpu平均使用core数', 'dim':
    'pod_cpu_core_usage_avg', 'type': 'DOUBLE'}, {'field':
    'podRamGbUsageAvg', 'alias': 'ram平均使用GB', 'dim': 'pod_ram_gb_usage_avg',
    'type': 'DOUBLE'}], 'requestMethod': 'GET', 'lastModifier': '999999999',
    'paging': True, 'qlTemplate':
    'timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'dws_cost_pod_resource_allocation_stats_1d',
    'buildIn': True, 'mode': 'guide', 'dataSourceId': '1', 'name':
    'pod_resource_allocation_stats', 'alias': 'pod资源分配统计', 'responseParams':
    ['appId', 'appInstanceId', 'podRamGbAllocation', 'podCpuCoreAllocation',
    'id', 'clusterId', 'timestamp', 'podPVCGbAllocation', 'cpuEfficiency',
    'ramEfficiency', 'podCpuCoreUsageAvg', 'podRamGbUsageAvg'],
    'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'defaultValue': '', 'name': 'sTimestamp', 'alias':
    '开始时间戳(毫秒)', 'type': 'LONG', 'required': True}, {'name': 'eTimestamp',
    'alias': '结束时间戳(毫秒)', 'type': 'LONG', 'required': True}, {
    'defaultValue': '*', 'name': 'appInstanceId', 'alias': '应用实例ID', 'type':
    'STRING', 'required': True}], 'groupFields': [], 'sortFields': []}, {
    'creator': '999999999', 'queryFields': [{'field': 'id', 'alias': '主键',
    'dim': 'id', 'type': 'STRING'}, {'field': 'clusterId', 'alias': '集群ID',
    'dim': 'cluster_id', 'type': 'STRING'}, {'field': 'monthlyRamPrice',
    'alias': 'ram月计价', 'dim': 'monthly_ram_price', 'type': 'DOUBLE'}, {
    'field': 'monthlyCpuPrice', 'alias': 'cpu月计价', 'dim':
    'monthly_cpu_price', 'type': 'DOUBLE'}, {'field': 'currency', 'alias':
    '货币', 'dim': 'currency', 'type': 'STRING'}, {'field':
    'monthlyStoragePrice', 'alias': 'storage月计价', 'dim':
    'monthly_storage_price', 'type': 'DOUBLE'}], 'requestMethod': 'GET',
    'lastModifier': '999999999', 'paging': True, 'qlTemplate': '*',
    'dataSourceTable': 'dim_cost_resource_price', 'buildIn': True, 'mode':
    'guide', 'dataSourceId': '1', 'name': 'resource_price', 'alias': '资源定价',
    'responseParams': ['id', 'clusterId', 'monthlyRamPrice',
    'monthlyCpuPrice', 'currency', 'monthlyStoragePrice'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [],
    'groupFields': [], 'sortFields': []}, {'creator': '999999999',
    'queryFields': [{'field': 'cpuCoreAllocation', 'alias': 'cpu量', 'dim':
    'cpu_core_allocation', 'type': 'DOUBLE', 'operator': 'sum'}, {'field':
    'ramGbAllocation', 'alias': 'ram量', 'dim': 'ram_gb_allocation', 'type':
    'DOUBLE', 'operator': 'sum'}, {'field': 'cpuCost', 'alias': 'cpu成本',
    'dim': 'cpu_cost', 'type': 'DOUBLE', 'operator': 'sum'}, {'field':
    'ramCost', 'alias': 'ram成本', 'dim': 'ram_cost', 'type': 'DOUBLE',
    'operator': 'sum'}, {'field': 'cost', 'alias': '总成本', 'dim': 'cost',
    'type': 'DOUBLE', 'operator': 'sum'}, {'field': 'pvcCost', 'alias':
    'pvc成本', 'dim': 'pvc_cost', 'type': 'DOUBLE', 'operator': 'sum'}, {
    'field': 'pvcGbAllocation', 'alias': 'pvc量', 'dim': 'pvc_gb_allocation',
    'type': 'DOUBLE', 'operator': 'sum'}, {'field': 'podCnt', 'alias':
    'pod数量', 'dim': 'pod_cnt', 'type': 'DOUBLE', 'operator': 'max'}],
    'requestMethod': 'GET', 'lastModifier': '999999999', 'paging': True,
    'qlTemplate':
    'timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND  app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'ads_app_cost', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_cost', 'alias': '应用成本',
    'responseParams': ['cpuCoreAllocation', 'ramGbAllocation', 'cpuCost',
    'ramCost', 'cost', 'currency', 'pvcCost', 'pvcGbAllocation', 'podCnt',
    'appInstanceId'], 'contentType': 'application/json', 'dataSourceType':
    'es', 'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)',
    'type': 'LONG', 'required': True}, {'name': 'eTimestamp', 'alias':
    '结束时间戳(ms)', 'type': 'LONG', 'required': True}, {'defaultValue': '*',
    'name': 'appInstanceId', 'alias': '应用实例ID', 'type': 'STRING',
    'required': True}], 'groupFields': [{'field': 'appInstanceId', 'alias':
    '应用实例ID', 'dim': 'app_instance_id', 'type': 'STRING', 'operator':
    'terms'}, {'field': 'currency', 'alias': '货币单位', 'dim': 'currency',
    'type': 'STRING', 'operator': 'terms'}], 'sortFields': []}, {'creator':
    '999999999', 'queryFields': [{'field': 'podName', 'alias': 'POD名称',
    'dim': 'prometheus.labels.pod', 'type': 'STRING'}, {'field': 'appId',
    'alias': '应用ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appId', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_componentName',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appComponentInstanceId', 'alias':
    '应用组件实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称',
    'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName',
    'type': 'STRING'}, {'field': 'clusterId', 'alias': '集群ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_clusterId', 'type':
    'STRING'}, {'field': 'namespace', 'alias': '命名空间', 'dim':
    'prometheus.labels.namespace', 'type': 'STRING'}, {'field':
    'podPVCGbHoursAllocation', 'alias': 'pvc分配量', 'dim':
    'prometheus.query.pod_pvc_gb_hours_allocation', 'type': 'DOUBLE'}, {
    'field': 'timestamp', 'alias': '计算时间戳', 'dim': '@timestamp', 'type':
    'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_pvc_gb_hours_allocation:*'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'pod_pvc_gb_hours_allocation', 'alias':
    'POD_PVC_GB分配查询(小时)', 'responseParams': ['podName', 'appId',
    'appComponentName', 'appInstanceId', 'appComponentInstanceId',
    'appInstanceName', 'clusterId', 'namespace', 'podPVCGbHoursAllocation',
    'timestamp'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}], 'groupFields': [], 'sortFields': []
    }, {'creator': '999999999', 'queryFields': [{'field': 'podName',
    'alias': 'POD名称', 'dim': 'prometheus.labels.pod', 'type': 'STRING'}, {
    'field': 'appId', 'alias': '应用ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appId', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_componentName',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appComponentInstanceId', 'alias':
    '应用组件实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称',
    'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName',
    'type': 'STRING'}, {'field': 'clusterId', 'alias': '集群ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_clusterId', 'type':
    'STRING'}, {'field': 'namespace', 'alias': '命名空间', 'dim':
    'prometheus.labels.namespace', 'type': 'STRING'}, {'field':
    'podCpuCoreHoursUsageAvg', 'alias': 'cpu_core使用量', 'dim':
    'prometheus.query.pod_cpu_core_hours_usage_avg', 'type': 'DOUBLE'}, {
    'field': 'timestamp', 'alias': '时间戳', 'dim': '@timestamp', 'type':
    'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_cpu_core_hours_usage_avg:*'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'pod_cpu_core_hours_usage_avg', 'alias':
    'POD_CPU_CORE使用量查询(小时)', 'responseParams': ['podName', 'appId',
    'appComponentName', 'appInstanceId', 'appComponentInstanceId',
    'appInstanceName', 'clusterId', 'namespace', 'podCpuCoreHoursUsageAvg',
    'timestamp'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}]}, {'creator': '999999999',
    'queryFields': [{'field': 'podName', 'alias': 'POD名称', 'dim':
    'prometheus.labels.pod', 'type': 'STRING'}, {'field': 'appId', 'alias':
    '应用ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appId', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_componentName',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appComponentInstanceId', 'alias':
    '应用组件实例ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId',
    'type': 'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称',
    'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName',
    'type': 'STRING'}, {'field': 'clusterId', 'alias': '集群ID', 'dim':
    'prometheus.labels.label_labels_appmanager_oam_dev_clusterId', 'type':
    'STRING'}, {'field': 'namespace', 'alias': '命名空间', 'dim':
    'prometheus.labels.namespace', 'type': 'STRING'}, {'field':
    'podRamGbHoursUsageAvg', 'alias': 'ram使用量', 'dim':
    'prometheus.query.pod_ram_gb_hours_usage_avg', 'type': 'DOUBLE'}, {
    'field': 'timestamp', 'alias': '计算时间戳', 'dim': '@timestamp', 'type':
    'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_ram_gb_hours_usage_avg:*'
    , 'dataSourceTable': 'metricbeat', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'pod_ram_gb_hours_usage_avg', 'alias':
    'POD_RAM_GB使用量查询(小时)', 'responseParams': ['podName', 'appId',
    'appComponentName', 'appInstanceId', 'appComponentInstanceId',
    'appInstanceName', 'clusterId', 'namespace', 'podRamGbHoursUsageAvg',
    'timestamp'], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}]}, {'creator': '999999999',
    'queryFields': [{'field': 'cpuCoreAllocation', 'alias': 'cpu量', 'dim':
    'cpu_core_allocation', 'type': 'DOUBLE', 'operator': ''}, {'field':
    'ramGbAllocation', 'alias': 'ram量', 'dim': 'ram_gb_allocation', 'type':
    'DOUBLE', 'operator': ''}, {'field': 'pvcGbAllocation', 'alias': 'pvc量',
    'dim': 'pvc_gb_allocation', 'type': 'DOUBLE', 'operator': ''}, {'field':
    'ramGbUsageAvg', 'alias': 'ram使用', 'dim': 'ram_gb_usage_avg', 'type':
    'DOUBLE'}, {'field': 'cpuCoreUsageAvg', 'alias': 'cpu使用', 'dim':
    'cpu_core_usage_avg', 'type': 'DOUBLE'}, {'field': 'cpuEfficiency',
    'alias': 'cpu水位', 'dim': 'cpu_efficiency', 'type': 'DOUBLE'}, {'field':
    'ramEfficiency', 'alias': 'ram水位', 'dim': 'ram_efficiency', 'type':
    'DOUBLE'}, {'field': 'timestamp', 'alias': '时间戳', 'dim': 'timestamp',
    'type': 'LONG'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'app_instance_id', 'type': 'STRING'}], 'requestMethod': 'GET',
    'lastModifier': '999999999', 'paging': True, 'qlTemplate':
    'timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND  app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'ads_app_cost', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_resource', 'alias': '应用资源',
    'responseParams': ['cpuCoreAllocation', 'ramGbAllocation',
    'pvcGbAllocation', 'appInstanceId', 'ramGbUsageAvg', 'cpuCoreUsageAvg',
    'cpuEfficiency', 'ramEfficiency', 'timestamp'], 'contentType':
    'application/json', 'dataSourceType': 'es', 'requestParams': [{'name':
    'sTimestamp', 'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True},
    {'name': 'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required':
    True}, {'defaultValue': '*', 'name': 'appInstanceId', 'alias': '应用实例ID',
    'type': 'STRING', 'required': True}], 'groupFields': [], 'sortFields':
    [{'dim': 'timestamp', 'order': 'asc'}]}, {'creator': '999999999',
    'queryFields': [{'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'app_instance_id', 'type': 'STRING'}, {'field':
    'riskInstanceCntDailyAdditions', 'alias': '每日新增风险实例数量', 'dim':
    'risk_instance_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'alertInstanceCntDailyAdditions', 'alias': '每日新增告警实例数量', 'dim':
    'alert_instance_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'incidentInstanceCntDailyAdditions', 'alias': '每日新增异常实例数量', 'dim':
    'incident_instance_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'failureInstanceCntDailyAdditions', 'alias': '每日新增故障实例数量', 'dim':
    'failure_instance_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'timestamp', 'alias': '时间戳', 'dim': 'timestamp', 'type': 'LONG'}],
    'requestMethod': 'GET', 'lastModifier': '999999999', 'paging': True,
    'qlTemplate':
    'timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'ads_app_health', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'app_health', 'alias': '应用健康',
    'responseParams': ['appInstanceId', 'timestamp',
    'riskInstanceCntDailyAdditions', 'alertInstanceCntDailyAdditions',
    'incidentInstanceCntDailyAdditions', 'failureInstanceCntDailyAdditions'
    ], 'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间(ms)',
    'type': 'LONG', 'required': True}, {'defaultValue': '*', 'name':
    'appInstanceId', 'alias': '应用实例ID', 'type': 'STRING', 'required': True}
    ], 'groupFields': [], 'sortFields': [{'dim': 'timestamp', 'order':
    'asc'}]}, {'creator': '999999999', 'queryFields': [{'field': 'teamId',
    'alias': '团队ID', 'dim': 'team_id', 'type': 'INT'}, {'field': 'user',
    'alias': '用户ID', 'dim': 'user', 'type': 'STRING'}, {'field': 'role',
    'alias': '用户角色', 'dim': 'role', 'type': 'STRING'}], 'requestMethod':
    'GET', 'lastModifier': '999999999', 'paging': True, 'qlTemplate': '1=1',
    'dataSourceTable': 'team_user', 'buildIn': True, 'mode': 'guide',
    'dataSourceId': '2', 'name': 'team_user', 'alias': '团队用户',
    'responseParams': ['teamId', 'user', 'role'], 'contentType':
    'application/json', 'dataSourceType': 'mysql'}, {'creator': '999999999',
    'queryFields': [{'field': 'appId', 'alias': '应用ID', 'dim': 'app_id',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'app_instance_id', 'type': 'STRING'}, {'field': 'appInstanceName',
    'alias': '应用实例名称', 'dim': 'app_instance_name', 'type': 'STRING'}, {
    'field': 'deliveryCntDailyAdditions', 'alias': '每日新增构建次数', 'dim':
    'delivery_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'deliverySuccessCntDailyAdditions', 'alias': '每日新增成功构建次数', 'dim':
    'delivery_success_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'deliverySuccessRateDaily', 'alias': '每日构建成功率', 'dim':
    'delivery_success_rate_daily', 'type': 'DOUBLE'}, {'field':
    'deploymentCntDailyAdditions', 'alias': '每日新增部署次数', 'dim':
    'deployment_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'deploymentSuccessCntDailyAdditions', 'alias': '每日新增成功部署次数', 'dim':
    'deployment_success_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'deploymentSuccessRateDaily', 'alias': '每日部署成功率', 'dim':
    'deployment_success_rate_daily', 'type': 'DOUBLE'}, {'field':
    'timestamp', 'alias': '统计时间', 'dim': 'timestamp', 'type': 'LONG'}, {
    'field': 'teamId', 'alias': '团队ID', 'dim': 'team_id', 'type': 'LONG'}],
    'requestMethod': 'GET', 'lastModifier': '999999999', 'paging': True,
    'qlTemplate':
    'timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'ads_app_delivery_deployment_quality', 'buildIn': 
    True, 'mode': 'guide', 'dataSourceId': '1', 'name':
    'app_delivery_deployment_quality', 'alias': '应用交付部署质量',
    'responseParams': ['appInstanceId', 'appInstanceName',
    'deliveryCntDailyAdditions', 'deliverySuccessCntDailyAdditions',
    'deliverySuccessRateDaily', 'deploymentCntDailyAdditions',
    'deploymentSuccessCntDailyAdditions', 'deploymentSuccessRateDaily',
    'timestamp', 'teamId', 'appId'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'sTimestamp',
    'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name':
    'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True},
    {'defaultValue': '*', 'name': 'appInstanceId', 'alias': '应用实例ID',
    'type': 'STRING', 'required': True}], 'groupFields': [], 'sortFields':
    []}, {'creator': '999999999', 'queryFields': [{'field': 'appId',
    'alias': '应用ID', 'dim': 'app_id', 'type': 'STRING'}, {'field':
    'appInstanceId', 'alias': '应用实例ID', 'dim': 'app_instance_id', 'type':
    'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称', 'dim':
    'app_instance_name', 'type': 'STRING'}, {'field':
    'deliveryCntDailyAdditions', 'alias': '每日新增构建次数', 'dim':
    'delivery_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'deploymentCntDailyAdditions', 'alias': '每日新增部署次数', 'dim':
    'deployment_cnt_daily_additions', 'type': 'LONG'}, {'field':
    'hrEffectivenessRatioDaily', 'alias': '每日人效比', 'dim':
    'hr_effectiveness_ratio_daily', 'type': 'DOUBLE'}, {'field':
    'timestamp', 'alias': '统计时间', 'dim': 'timestamp', 'type': 'LONG'}, {
    'field': 'teamId', 'alias': '团队ID', 'dim': 'team_id', 'type': 'LONG'},
    {'field': 'teamMemberCnt', 'alias': '团队成员数', 'dim': 'team_member_cnt',
    'type': 'INT'}], 'requestMethod': 'GET', 'lastModifier': '999999999',
    'paging': True, 'qlTemplate':
    'timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'ads_app_delivery_deployment_efficiency',
    'buildIn': True, 'mode': 'guide', 'dataSourceId': '1', 'name':
    'app_delivery_deployment_efficiency', 'alias': '应用交付部署效能',
    'responseParams': ['appInstanceId', 'appInstanceName',
    'deliveryCntDailyAdditions', 'deploymentCntDailyAdditions', 'timestamp',
    'teamId', 'appId', 'teamMemberCnt', 'hrEffectivenessRatioDaily'],
    'contentType': 'application/json', 'dataSourceType': 'es',
    'requestParams': [{'name': 'sTimestamp', 'alias': '开始时间戳(ms)', 'type':
    'LONG', 'required': True}, {'name': 'eTimestamp', 'alias': '结束时间戳(ms)',
    'type': 'LONG', 'required': True}, {'defaultValue': '*', 'name':
    'appInstanceId', 'alias': '应用实例ID', 'type': 'STRING', 'required': True}
    ], 'groupFields': [], 'sortFields': []}, {'creator': '999999999',
    'queryFields': [{'field': 'metricId', 'alias': '指标定义ID', 'dim':
    'metric_id', 'type': 'INT'}, {'field': 'instanceId', 'alias': '指标实例ID',
    'dim': 'uid', 'type': 'STRING'}, {'field': 'metricType', 'alias':
    '指标类型', 'dim': 'type', 'type': 'STRING'}, {'field': 'timestamp',
    'alias': '采集时间戳', 'dim': 'timestamp', 'type': 'LONG'}, {'field':
    'value', 'alias': '指标值', 'dim': 'value', 'type': 'DOUBLE'}, {'field':
    'labels', 'alias': '实例标签', 'dim': 'labels', 'type': 'OBJECT'}],
    'requestMethod': 'GET', 'lastModifier': '999999999', 'paging': True,
    'qlTemplate':
    'timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND metric_id:{{metricId}} AND labels.{{labelName}}:{{labelValue}}'
    , 'dataSourceTable': 'dwd_original_metric_data_di', 'buildIn': True,
    'mode': 'guide', 'dataSourceId': '1', 'name': 'metric_data', 'alias':
    '指标数据接口', 'responseParams': ['metricId', 'instanceId', 'metricType',
    'timestamp', 'value', 'labels'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'sTimestamp',
    'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name':
    'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True},
    {'defaultValue': '', 'name': 'metricId', 'alias': '指标ID', 'type': 'INT',
    'required': True}, {'name': 'labelName', 'alias': '指标标签KEY', 'type':
    'STRING', 'required': True}, {'defaultValue': '*', 'name': 'labelValue',
    'alias': '指标标签VALUE', 'type': 'STRING', 'required': False}],
    'groupFields': [], 'sortFields': [{'dim': 'timestamp', 'order': 'asc'}]
    }, {'creator': '999999999', 'queryFields': [{'field': 'instanceId',
    'alias': '指标实例ID', 'dim': 'uid', 'type': 'STRING'}, {'field':
    'metricType', 'alias': '指标类型', 'dim': 'type', 'type': 'STRING'}, {
    'field': 'timestamp', 'alias': '采集时间戳', 'dim': 'timestamp', 'type':
    'LONG'}, {'field': 'value', 'alias': '指标值', 'dim': 'value', 'type':
    'DOUBLE'}, {'field': 'labels', 'alias': '实例标签', 'dim': 'labels', 'type':
    'OBJECT'}], 'requestMethod': 'GET', 'lastModifier': '999999999',
    'paging': True, 'qlTemplate':
    'timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND metric_name:{{metricName}} AND labels.app_instance_id:{{appInstanceId}}'
    , 'dataSourceTable': 'dwd_original_metric_data_di', 'buildIn': True,
    'mode': 'guide', 'dataSourceId': '1', 'name': 'app_metric_data',
    'alias': '应用指标数据接口', 'responseParams': ['instanceId', 'metricType',
    'timestamp', 'value', 'labels'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'sTimestamp',
    'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name':
    'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True},
    {'defaultValue': '*', 'name': 'appInstanceId', 'alias': '应用实例ID',
    'type': 'STRING', 'required': False}, {'defaultValue': '*', 'name':
    'metricName', 'alias': '指标名称', 'type': 'STRING', 'required': False}],
    'groupFields': [], 'sortFields': [{'dim': 'timestamp', 'order': 'asc'}]
    }, {'creator': '999999999', 'queryFields': [{'field': 'id', 'alias':
    '事件ID', 'dim': 'id', 'type': 'STRING'}, {'field': 'namespace', 'alias':
    '命名空间', 'dim': 'namespace', 'type': 'STRING'}, {'field': 'podName',
    'alias': 'pod名称', 'dim': 'pod_name', 'type': 'STRING'}, {'field':
    'type', 'alias': '事件类型', 'dim': 'type', 'type': 'STRING'}, {'field':
    'reason', 'alias': '事件原因', 'dim': 'reason', 'type': 'STRING'}, {'field':
    'message', 'alias': '事件详情', 'dim': 'message', 'type': 'STRING'}, {
    'field': 'gmtOccur', 'alias': '发生时间', 'dim': 'gmt_occur', 'type':
    'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999', 'paging':
    True, 'qlTemplate': 'gmt_occur [{{sTimestamp}} TO {{eTimestamp}}}',
    'dataSourceTable': 'dwd_original_pod_event_di', 'buildIn': True, 'mode':
    'guide', 'dataSourceId': '1', 'name': 'pod_event', 'alias': 'POD事件明细',
    'responseParams': ['id', 'namespace', 'podName', 'type', 'reason',
    'gmtOccur', 'message'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'sTimestamp',
    'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name':
    'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True}],
    'groupFields': [], 'sortFields': [{'dim': 'gmt_occur', 'order': 'asc'}]
    }, {'creator': '999999999', 'queryFields': [{'field': 'appId', 'alias':
    '应用ID', 'dim': 'kubernetes.labels.labels_appmanager_oam_dev/appId',
    'type': 'STRING'}, {'field': 'appInstanceId', 'alias': '应用实例ID', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/appInstanceId', 'type':
    'STRING'}, {'field': 'appInstanceName', 'alias': '应用实例名称', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/appInstanceName', 'type':
    'STRING'}, {'field': 'appComponentName', 'alias': '应用组件名称', 'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/componentName', 'type':
    'STRING'}, {'field': 'appComponentInstanceId', 'alias': '应用组件实例ID',
    'dim':
    'kubernetes.labels.labels_appmanager_oam_dev/componentInstanceId',
    'type': 'STRING'}, {'field': 'namespace', 'alias': '命名空间', 'dim':
    'kubernetes.namespace', 'type': 'STRING'}, {'field': 'podName', 'alias':
    'POD名称', 'dim': 'kubernetes.pod.name', 'type': 'STRING'}, {'field':
    'podStatus', 'alias': 'POD状态', 'dim': 'kubernetes.pod.status', 'type':
    'OBJECT'}, {'field': 'timestamp', 'alias': '时间戳', 'dim': '@timestamp',
    'type': 'LONG'}], 'requestMethod': 'GET', 'lastModifier': '999999999',
    'paging': True, 'qlTemplate':
    '@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:state_pod AND kubernetes.labels.stageId:prod AND kubernetes.labels.labels_appmanager_oam_dev\\/appId:{{appId}}'
    , 'dataSourceTable': 'metricbeat', 'buildIn': False, 'mode': 'guide',
    'dataSourceId': '1', 'name': 'pod_status', 'alias': 'POD状态明细',
    'responseParams': ['appInstanceId', 'appInstanceName',
    'appComponentName', 'appComponentInstanceId', 'namespace', 'podName',
    'podStatus', 'timestamp', 'appId'], 'contentType': 'application/json',
    'dataSourceType': 'es', 'requestParams': [{'name': 'sTimestamp',
    'alias': '开始时间戳(ms)', 'type': 'LONG', 'required': True}, {'name':
    'eTimestamp', 'alias': '结束时间戳(ms)', 'type': 'LONG', 'required': True},
    {'defaultValue': '*', 'name': 'appId', 'alias': '应用ID', 'type':
    'STRING', 'required': True}], 'groupFields': [], 'sortFields': []}]


def add_interfaces():
    url = host['dataset'] + '/interfaceConfig_v2/createConfig'
    for interface in interfaces:
        r = requests.post(url, headers=headers, json=interface)
        if r.status_code == 200:
            print(r.json())

# coding: utf-8

import requests
from common.constant import host

headers = {}

interfaces = [{
    "creator": "999999999",
    "queryFields": [{
        "field": "action_meta_data",
        "alias": "操作详情元数据",
        "dim": "action_meta_data",
        "type": "OBJECT"
    }, {
        "field": "action_type",
        "alias": "操作类型",
        "dim": "action_type",
        "type": "STRING"
    }, {
        "field": "action_label",
        "alias": "操作标签",
        "dim": "action_label",
        "type": "STRING"
    }, {
        "field": "action_name",
        "alias": "操作名称",
        "dim": "action_name",
        "type": "STRING"
    }, {
        "field": "exec_data",
        "alias": "执行返回数据",
        "dim": "exec_data",
        "type": "OBJECT"
    }, {
        "field": "create_time",
        "alias": "执行返回数据",
        "dim": "create_time",
        "type": "LONG"
    }, {
        "field": "processor",
        "alias": "操作人",
        "dim": "processor",
        "type": "OBJECT"
    }, {
        "field": "params",
        "alias": "操作参数",
        "dim": "action_meta_data.params",
        "type": "OBJECT"
    }, {
        "field": "start_time",
        "alias": "开始时间",
        "dim": "start_time",
        "type": "LONG"
    }, {
        "field": "end_time",
        "alias": "结束时间",
        "dim": "end_time",
        "type": "LONG"
    }],
    "requestMethod": "POST",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "{{query}}",
    "dataSourceTable": "sreworks_action",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "action",
    "alias": "操作明细",
    "responseParams": ["action_meta_data", "action_type", "action_label", "action_name", "exec_data", "create_time", "processor", "params", "start_time", "end_time"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "query",
        "alias": "查询条件",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": [{
        "dim": "create_time",
        "order": "desc"
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "id",
        "alias": "团队ID",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "name",
        "alias": "团队名称",
        "dim": "name",
        "type": "STRING"
    }, {
        "field": "avatar",
        "alias": "头像",
        "dim": "avatar",
        "type": "STRING"
    }, {
        "field": "visible_scope",
        "alias": "可见属性",
        "dim": "visible_scope",
        "type": "STRING"
    }, {
        "field": "creator",
        "alias": "创建人",
        "dim": "creator",
        "type": "STRING"
    }, {
        "field": "gmt_create",
        "alias": "创建时间",
        "dim": "gmt_create",
        "type": "DATE"
    }, {
        "field": "last_modifier",
        "alias": "最近修改人",
        "dim": "last_modifier",
        "type": "STRING"
    }, {
        "field": "gmt_modified",
        "alias": "最近修改时间",
        "dim": "gmt_modified",
        "type": "DATE"
    }, {
        "field": "description",
        "alias": "说明",
        "dim": "description",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "ds:{{ds}} AND {{query}}",
    "dataSourceTable": "ods_team",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "team",
    "alias": "团队明细(数仓)",
    "responseParams": ["id", "name", "avatar", "visible_scope", "creator", "gmt_create", "last_modifier", "gmt_modified", "description"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "defaultValue": "*",
        "name": "query",
        "alias": "查询条件",
        "type": "STRING",
        "required": False
    }, {
        "name": "ds",
        "alias": "时间分区",
        "type": "STRING",
        "required": True
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "id",
        "alias": "应用ID",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "name",
        "alias": "应用名称",
        "dim": "name",
        "type": "STRING"
    }, {
        "field": "labels",
        "alias": "应用标签",
        "dim": "labels",
        "type": "OBJECT"
    }, {
        "field": "detail",
        "alias": "应用详情",
        "dim": "detail",
        "type": "OBJECT"
    }, {
        "field": "team_id",
        "alias": "归属应用ID",
        "dim": "team_id",
        "type": "OBJECT"
    }, {
        "field": "creator",
        "alias": "创建人",
        "dim": "creator",
        "type": "STRING"
    }, {
        "field": "last_modifier",
        "alias": "最近修改人",
        "dim": "last_modifier",
        "type": "STRING"
    }, {
        "field": "gmt_create",
        "alias": "创建时间",
        "dim": "gmt_create",
        "type": "DATE"
    }, {
        "field": "gmt_modified",
        "alias": "最近修改时间",
        "dim": "gmt_modified",
        "type": "DATE"
    }, {
        "field": "display",
        "alias": "可见",
        "dim": "display",
        "type": "BOOLEAN"
    }, {
        "field": "annotations",
        "alias": "应用注解",
        "dim": "annotations",
        "type": "OBJECT"
    }, {
        "field": "description",
        "alias": "应用描述",
        "dim": "description",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "ds:{{ds}} AND {{query}}",
    "dataSourceTable": "ods_app",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app",
    "alias": "应用明细(数仓)",
    "responseParams": ["id", "name", "labels", "detail", "team_id", "creator", "last_modifier", "gmt_create", "gmt_modified", "display", "annotations", "description"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "defaultValue": "*",
        "name": "query",
        "alias": "查询条件",
        "type": "STRING",
        "required": False
    }, {
        "name": "ds",
        "alias": "时间分区",
        "type": "STRING",
        "required": True
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "id",
        "alias": "集群ID",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "name",
        "alias": "集群名称",
        "dim": "name",
        "type": "STRING"
    }, {
        "field": "cluster_name",
        "alias": "集群code",
        "dim": "cluster_name",
        "type": "STRING"
    }, {
        "field": "account_id",
        "alias": "关联账户",
        "dim": "account_id",
        "type": "STRING"
    }, {
        "field": "team_id",
        "alias": "归属团队ID",
        "dim": "team_id",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "ds:{{ds}} AND {{query}}",
    "dataSourceTable": "ods_cluster",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "cluster",
    "alias": "集群明细(数仓)",
    "responseParams": ["id", "name", "cluster_name", "account_id", "team_id"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "ds",
        "alias": "时间分区",
        "type": "STRING",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "query",
        "alias": "查询条件",
        "type": "STRING",
        "required": False
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "id",
        "alias": "应用ID",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "name",
        "alias": "应用名称",
        "dim": "name",
        "type": "STRING"
    }, {
        "field": "team_id",
        "alias": "归属团队",
        "dim": "team_id",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "1=1",
    "dataSourceTable": "app",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "2",
    "name": "sreworks_app",
    "alias": "应用明细",
    "responseParams": ["id", "name", "team_id"],
    "contentType": "application/json",
    "dataSourceType": "mysql",
    "requestParams": [],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "cpuPct",
        "alias": "使用率",
        "dim": "host.cpu.pct",
        "type": "FLOAT",
        "operator": "max"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:system AND metricset.name:cpu AND host.name:{{hostname}}",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "node_cpu_usage_1d",
    "alias": "节点CPU使用率(天)",
    "responseParams": ["timestamp", "hostname", "cpuPct"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "defaultValue": "",
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "hostname",
        "alias": "节点名称",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [{
        "field": "timestamp",
        "granularity": "1d",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG",
        "operator": "date_histogram"
    }, {
        "field": "hostname",
        "alias": "节点名称",
        "dim": "host.name",
        "type": "STRING",
        "operator": "terms"
    }],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "name",
        "alias": "资源实例名称",
        "dim": "kubernetes.event.involved_object.name",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "资源空间",
        "dim": "kubernetes.event.metadata.namespace",
        "type": "STRING"
    }, {
        "field": "gmtOccur",
        "alias": "发生时间",
        "dim": "kubernetes.event.timestamp.last_occurrence",
        "type": "LONG"
    }, {
        "field": "type",
        "alias": "类型",
        "dim": "kubernetes.event.type",
        "type": "STRING"
    }, {
        "field": "reason",
        "alias": "原因",
        "dim": "kubernetes.event.reason",
        "type": "STRING"
    }, {
        "field": "message",
        "alias": "详情",
        "dim": "kubernetes.event.message",
        "type": "STRING"
    }, {
        "field": "kind",
        "alias": "资源类型",
        "dim": "kubernetes.event.involved_object.kind",
        "type": "STRING"
    }, {
        "field": "uid",
        "alias": "事件对象id",
        "dim": "kubernetes.event.metadata.uid",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:event AND kubernetes.event.involved_object.kind:{{kind}} AND kubernetes.event.metadata.namespace:{{namespace}} AND kubernetes.event.involved_object.name:{{name}}",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "kubernetes_event",
    "alias": "kubernetes事件明细",
    "responseParams": ["name", "namespace", "type", "reason", "message", "kind", "uid", "gmtOccur"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "kind",
        "alias": "资源类型",
        "type": "STRING",
        "required": False
    }, {
        "defaultValue": "*",
        "name": "namespace",
        "alias": "资源空间",
        "type": "STRING",
        "required": False
    }, {
        "defaultValue": "*",
        "name": "name",
        "alias": "资源实例名称",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "namespace",
        "type": "STRING"
    }, {
        "field": "podName",
        "alias": "POD名称",
        "dim": "pod_name",
        "type": "STRING"
    }, {
        "field": "podPhase",
        "alias": "POD状态阶段",
        "dim": "pod_phase",
        "type": "STRING"
    }, {
        "field": "podReady",
        "alias": "POD就绪",
        "dim": "pod_ready",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_id:{{appId}} AND app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "dwd_original_app_pod_status_di",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_pod_status",
    "alias": "应用POD状态明细",
    "responseParams": ["timestamp", "appId", "appComponentName", "appInstanceId", "appInstanceName", "appComponentInstanceId", "namespace", "podName", "podPhase", "podReady"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appId",
        "alias": "应用ID",
        "type": "STRING",
        "required": False
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "cpuPct",
        "alias": "CPU使用率",
        "dim": "kubernetes.pod.cpu.usage.node.pct",
        "type": "FLOAT",
        "operator": "max"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.labels.labels_appmanager_oam_dev\\/appId:{{appId}} AND kubernetes.labels.componentName:{{componentName}}",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_component_pod_cpu_usage_1d",
    "alias": "应用组件POD CPU使用率(天)",
    "responseParams": ["timestamp", "appId", "componentName", "podName", "cpuPct"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appId",
        "alias": "应用ID",
        "type": "STRING",
        "required": False
    }, {
        "defaultValue": "*",
        "name": "componentName",
        "alias": "组件名称",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [{
        "field": "timestamp",
        "granularity": "1d",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG",
        "operator": "date_histogram"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appId",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "componentName",
        "alias": "组件名称",
        "dim": "kubernetes.labels.componentName",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "podName",
        "alias": "POD名称",
        "dim": "kubernetes.pod.name",
        "type": "STRING",
        "operator": "terms"
    }],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG",
        "operator": "max"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.namespace:{{namespace}} AND kubernetes.labels.labels_appmanager_oam_dev\\/appId:{{appId}}",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_pod",
    "alias": "应用POD实例",
    "responseParams": ["timestamp", "namespace", "appId", "appComponentName", "podName", "appInstanceId", "appComponentInstanceId"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "namespace",
        "alias": "命名空间",
        "type": "STRING",
        "required": False
    }, {
        "defaultValue": "*",
        "name": "appId",
        "alias": "应用ID",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [{
        "field": "namespace",
        "alias": "命名空间",
        "dim": "kubernetes.namespace",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appId",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/componentName",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "podName",
        "alias": "POD名称",
        "dim": "kubernetes.pod.name",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appInstanceId",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/componentInstanceId",
        "type": "STRING",
        "operator": "terms"
    }],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "cpuPct",
        "alias": "CPU使用率",
        "dim": "kubernetes.pod.cpu.usage.node.pct",
        "type": "FLOAT",
        "operator": "max"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.labels.labels_appmanager_oam_dev\\/appInstanceId:{{appInstanceId}}",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_instance_pod_cpu_usage_1d",
    "alias": "应用实例CPU使用率(天)",
    "responseParams": ["appInstanceId", "timestamp", "cpuPct"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [{
        "field": "timestamp",
        "granularity": "1d",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG",
        "operator": "date_histogram"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appInstanceId",
        "type": "STRING",
        "operator": "terms"
    }],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "cpuPct",
        "alias": "CPU使用率",
        "dim": "kubernetes.pod.cpu.usage.node.pct",
        "type": "FLOAT",
        "operator": "max"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": False,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:pod AND kubernetes.labels.labels_appmanager_oam_dev\\/appInstanceId:{{appInstanceId}}",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_instance_pod_cpu_usage_1h",
    "alias": "应用实例CPU使用率(小时)",
    "responseParams": ["appInstanceId", "timestamp", "cpuPct"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [{
        "field": "timestamp",
        "granularity": "1h",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG",
        "operator": "date_histogram"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appInstanceId",
        "type": "STRING",
        "operator": "terms"
    }],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "podName",
        "alias": "POD名称",
        "dim": "prometheus.labels.pod",
        "type": "STRING"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appId",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_componentName",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_clusterId",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "prometheus.labels.namespace",
        "type": "STRING"
    }, {
        "field": "podCpuCoreHoursAllocation",
        "alias": "cpu_core分配量",
        "dim": "prometheus.query.pod_cpu_core_hours_allocation",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_cpu_core_hours_allocation:*",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_cpu_core_hours_allocation",
    "alias": "POD_CPU_CORE分配查询(小时)",
    "responseParams": ["podName", "appId", "appComponentName", "appInstanceId", "appComponentInstanceId", "appInstanceName", "clusterId", "namespace", "podCpuCoreHoursAllocation", "timestamp"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "podName",
        "alias": "POD名称",
        "dim": "prometheus.labels.pod",
        "type": "STRING"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appId",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_componentName",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_clusterId",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "prometheus.labels.namespace",
        "type": "STRING"
    }, {
        "field": "podRamGbHoursAllocation",
        "alias": "ram分配量",
        "dim": "prometheus.query.pod_ram_gb_hours_allocation",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "计算时间戳",
        "dim": "@timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_ram_gb_hours_allocation:*",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_ram_gb_hours_allocation",
    "alias": "POD_RAM_GB分配查询(小时)",
    "responseParams": ["podName", "appId", "appComponentName", "appInstanceId", "appComponentInstanceId", "appInstanceName", "clusterId", "namespace", "podRamGbHoursAllocation", "timestamp"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "podRamGbHoursAllocation",
        "alias": "ram分配GB",
        "dim": "pod_ram_gb_hours_allocation",
        "type": "DOUBLE"
    }, {
        "field": "podCpuCoreHoursAllocation",
        "alias": "cpu_core分配",
        "dim": "pod_cpu_core_hours_allocation",
        "type": "DOUBLE"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "cluster_id",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "namespace",
        "type": "STRING"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }, {
        "field": "podName",
        "alias": "pod名称",
        "dim": "pod_name",
        "type": "STRING"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "podPVCGbHoursAllocation",
        "alias": "pvc用量GB",
        "dim": "pod_pvc_gb_hours_allocation",
        "type": "DOUBLE"
    }, {
        "field": "podCpuCoreHoursUsageAvg",
        "alias": "cpu_core用量",
        "dim": "pod_cpu_core_hours_usage_avg",
        "type": "DOUBLE"
    }, {
        "field": "podRamGbHoursUsageAvg",
        "alias": "ram用量GB",
        "dim": "pod_ram_gb_hours_usage_avg",
        "type": "DOUBLE"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_id:{{appId}}",
    "dataSourceTable": "dwd_cost_pod_resource_allocation_di",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_resource_hours_allocation",
    "alias": "POD资源查询(小时)",
    "responseParams": ["clusterId", "namespace", "appId", "appComponentName", "appInstanceId", "appInstanceName", "appComponentInstanceId", "podName", "podRamGbHoursAllocation", "podCpuCoreHoursAllocation", "timestamp", "podPVCGbHoursAllocation", "podCpuCoreHoursUsageAvg", "podRamGbHoursUsageAvg"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appId",
        "alias": "应用ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "appId",
        "alias": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "field": "podRamGbAllocation",
        "alias": "ram量",
        "dim": "pod_ram_gb_allocation",
        "type": "DOUBLE"
    }, {
        "field": "podCpuCoreAllocation",
        "alias": "cpu量",
        "dim": "pod_cpu_core_allocation",
        "type": "DOUBLE"
    }, {
        "field": "id",
        "alias": "id",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "cluster_id",
        "type": "STRING"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "podPVCGbAllocation",
        "alias": "pvc量",
        "dim": "pod_pvc_gb_allocation",
        "type": "DOUBLE"
    }, {
        "field": "cpuEfficiency",
        "alias": "CPU水位",
        "dim": "cpu_efficiency",
        "type": "DOUBLE"
    }, {
        "field": "ramEfficiency",
        "alias": "ram水位",
        "dim": "ram_efficiency",
        "type": "DOUBLE"
    }, {
        "field": "podCpuCoreUsageAvg",
        "alias": "cpu平均使用core数",
        "dim": "pod_cpu_core_usage_avg",
        "type": "DOUBLE"
    }, {
        "field": "podRamGbUsageAvg",
        "alias": "ram平均使用GB",
        "dim": "pod_ram_gb_usage_avg",
        "type": "DOUBLE"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "dws_cost_pod_resource_allocation_stats_1d",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_resource_allocation_stats",
    "alias": "pod资源分配统计",
    "responseParams": ["appId", "appInstanceId", "podRamGbAllocation", "podCpuCoreAllocation", "id", "clusterId", "timestamp", "podPVCGbAllocation", "cpuEfficiency", "ramEfficiency", "podCpuCoreUsageAvg", "podRamGbUsageAvg"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "defaultValue": "",
        "name": "sTimestamp",
        "alias": "开始时间戳(毫秒)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(毫秒)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "id",
        "alias": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "cluster_id",
        "type": "STRING"
    }, {
        "field": "monthlyRamPrice",
        "alias": "ram月计价",
        "dim": "monthly_ram_price",
        "type": "DOUBLE"
    }, {
        "field": "monthlyCpuPrice",
        "alias": "cpu月计价",
        "dim": "monthly_cpu_price",
        "type": "DOUBLE"
    }, {
        "field": "currency",
        "alias": "货币",
        "dim": "currency",
        "type": "STRING"
    }, {
        "field": "monthlyStoragePrice",
        "alias": "storage月计价",
        "dim": "monthly_storage_price",
        "type": "DOUBLE"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "*",
    "dataSourceTable": "dim_cost_resource_price",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "resource_price",
    "alias": "资源定价",
    "responseParams": ["id", "clusterId", "monthlyRamPrice", "monthlyCpuPrice", "currency", "monthlyStoragePrice"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "cpuCoreAllocation",
        "alias": "cpu量",
        "dim": "cpu_core_allocation",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "ramGbAllocation",
        "alias": "ram量",
        "dim": "ram_gb_allocation",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "cpuCost",
        "alias": "cpu成本",
        "dim": "cpu_cost",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "ramCost",
        "alias": "ram成本",
        "dim": "ram_cost",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "cost",
        "alias": "总成本",
        "dim": "cost",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "pvcCost",
        "alias": "pvc成本",
        "dim": "pvc_cost",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "pvcGbAllocation",
        "alias": "pvc量",
        "dim": "pvc_gb_allocation",
        "type": "DOUBLE",
        "operator": "sum"
    }, {
        "field": "podCnt",
        "alias": "pod数量",
        "dim": "pod_cnt",
        "type": "DOUBLE",
        "operator": "max"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND  app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "ads_app_cost",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_cost",
    "alias": "应用成本",
    "responseParams": ["cpuCoreAllocation", "ramGbAllocation", "cpuCost", "ramCost", "cost", "currency", "pvcCost", "pvcGbAllocation", "podCnt", "appInstanceId"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [{
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING",
        "operator": "terms"
    }, {
        "field": "currency",
        "alias": "货币单位",
        "dim": "currency",
        "type": "STRING",
        "operator": "terms"
    }],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "podName",
        "alias": "POD名称",
        "dim": "prometheus.labels.pod",
        "type": "STRING"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appId",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_componentName",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_clusterId",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "prometheus.labels.namespace",
        "type": "STRING"
    }, {
        "field": "podPVCGbHoursAllocation",
        "alias": "pvc分配量",
        "dim": "prometheus.query.pod_pvc_gb_hours_allocation",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "计算时间戳",
        "dim": "@timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_pvc_gb_hours_allocation:*",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_pvc_gb_hours_allocation",
    "alias": "POD_PVC_GB分配查询(小时)",
    "responseParams": ["podName", "appId", "appComponentName", "appInstanceId", "appComponentInstanceId", "appInstanceName", "clusterId", "namespace", "podPVCGbHoursAllocation", "timestamp"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "podName",
        "alias": "POD名称",
        "dim": "prometheus.labels.pod",
        "type": "STRING"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appId",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_componentName",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_clusterId",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "prometheus.labels.namespace",
        "type": "STRING"
    }, {
        "field": "podCpuCoreHoursUsageAvg",
        "alias": "cpu_core使用量",
        "dim": "prometheus.query.pod_cpu_core_hours_usage_avg",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_cpu_core_hours_usage_avg:*",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_cpu_core_hours_usage_avg",
    "alias": "POD_CPU_CORE使用量查询(小时)",
    "responseParams": ["podName", "appId", "appComponentName", "appInstanceId", "appComponentInstanceId", "appInstanceName", "clusterId", "namespace", "podCpuCoreHoursUsageAvg", "timestamp"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "podName",
        "alias": "POD名称",
        "dim": "prometheus.labels.pod",
        "type": "STRING"
    }, {
        "field": "appId",
        "alias": "应用ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appId",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_componentName",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceId",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_appInstanceName",
        "type": "STRING"
    }, {
        "field": "clusterId",
        "alias": "集群ID",
        "dim": "prometheus.labels.label_labels_appmanager_oam_dev_clusterId",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "prometheus.labels.namespace",
        "type": "STRING"
    }, {
        "field": "podRamGbHoursUsageAvg",
        "alias": "ram使用量",
        "dim": "prometheus.query.pod_ram_gb_hours_usage_avg",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "计算时间戳",
        "dim": "@timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND event.module:prometheus AND prometheus.query.pod_ram_gb_hours_usage_avg:*",
    "dataSourceTable": "metricbeat",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_ram_gb_hours_usage_avg",
    "alias": "POD_RAM_GB使用量查询(小时)",
    "responseParams": ["podName", "appId", "appComponentName", "appInstanceId", "appComponentInstanceId", "appInstanceName", "clusterId", "namespace", "podRamGbHoursUsageAvg", "timestamp"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "cpuCoreAllocation",
        "alias": "cpu量",
        "dim": "cpu_core_allocation",
        "type": "DOUBLE",
        "operator": ""
    }, {
        "field": "ramGbAllocation",
        "alias": "ram量",
        "dim": "ram_gb_allocation",
        "type": "DOUBLE",
        "operator": ""
    }, {
        "field": "pvcGbAllocation",
        "alias": "pvc量",
        "dim": "pvc_gb_allocation",
        "type": "DOUBLE",
        "operator": ""
    }, {
        "field": "ramGbUsageAvg",
        "alias": "ram使用",
        "dim": "ram_gb_usage_avg",
        "type": "DOUBLE"
    }, {
        "field": "cpuCoreUsageAvg",
        "alias": "cpu使用",
        "dim": "cpu_core_usage_avg",
        "type": "DOUBLE"
    }, {
        "field": "cpuEfficiency",
        "alias": "cpu水位",
        "dim": "cpu_efficiency",
        "type": "DOUBLE"
    }, {
        "field": "ramEfficiency",
        "alias": "ram水位",
        "dim": "ram_efficiency",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND  app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "ads_app_cost",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_resource",
    "alias": "应用资源",
    "responseParams": ["cpuCoreAllocation", "ramGbAllocation", "pvcGbAllocation", "appInstanceId", "ramGbUsageAvg", "cpuCoreUsageAvg", "cpuEfficiency", "ramEfficiency", "timestamp"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": [{
        "dim": "timestamp",
        "order": "asc"
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "field": "riskInstanceCntDailyAdditions",
        "alias": "每日新增风险实例数量",
        "dim": "risk_instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "alertInstanceCntDailyAdditions",
        "alias": "每日新增告警实例数量",
        "dim": "alert_instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "incidentInstanceCntDailyAdditions",
        "alias": "每日新增异常实例数量",
        "dim": "incident_instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "failureInstanceCntDailyAdditions",
        "alias": "每日新增故障实例数量",
        "dim": "failure_instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "ads_app_health",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_health",
    "alias": "应用健康",
    "responseParams": ["appInstanceId", "timestamp", "riskInstanceCntDailyAdditions", "alertInstanceCntDailyAdditions", "incidentInstanceCntDailyAdditions", "failureInstanceCntDailyAdditions"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": [{
        "dim": "timestamp",
        "order": "asc"
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "teamId",
        "alias": "团队ID",
        "dim": "team_id",
        "type": "INT"
    }, {
        "field": "user",
        "alias": "用户ID",
        "dim": "user",
        "type": "STRING"
    }, {
        "field": "role",
        "alias": "用户角色",
        "dim": "role",
        "type": "STRING"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "1=1",
    "dataSourceTable": "team_user",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "2",
    "name": "team_user",
    "alias": "团队用户",
    "responseParams": ["teamId", "user", "role"],
    "contentType": "application/json",
    "dataSourceType": "mysql"
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "appId",
        "alias": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "field": "deliveryCntDailyAdditions",
        "alias": "每日新增构建次数",
        "dim": "delivery_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "deliverySuccessCntDailyAdditions",
        "alias": "每日新增成功构建次数",
        "dim": "delivery_success_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "deliverySuccessRateDaily",
        "alias": "每日构建成功率",
        "dim": "delivery_success_rate_daily",
        "type": "DOUBLE"
    }, {
        "field": "deploymentCntDailyAdditions",
        "alias": "每日新增部署次数",
        "dim": "deployment_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "deploymentSuccessCntDailyAdditions",
        "alias": "每日新增成功部署次数",
        "dim": "deployment_success_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "deploymentSuccessRateDaily",
        "alias": "每日部署成功率",
        "dim": "deployment_success_rate_daily",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "统计时间",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "teamId",
        "alias": "团队ID",
        "dim": "team_id",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "ads_app_delivery_deployment_quality",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_delivery_deployment_quality",
    "alias": "应用交付部署质量",
    "responseParams": ["appInstanceId", "appInstanceName", "deliveryCntDailyAdditions", "deliverySuccessCntDailyAdditions", "deliverySuccessRateDaily", "deploymentCntDailyAdditions", "deploymentSuccessCntDailyAdditions", "deploymentSuccessRateDaily", "timestamp", "teamId", "appId"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "appId",
        "alias": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "field": "deliveryCntDailyAdditions",
        "alias": "每日新增构建次数",
        "dim": "delivery_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "deploymentCntDailyAdditions",
        "alias": "每日新增部署次数",
        "dim": "deployment_cnt_daily_additions",
        "type": "LONG"
    }, {
        "field": "hrEffectivenessRatioDaily",
        "alias": "每日人效比",
        "dim": "hr_effectiveness_ratio_daily",
        "type": "DOUBLE"
    }, {
        "field": "timestamp",
        "alias": "统计时间",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "teamId",
        "alias": "团队ID",
        "dim": "team_id",
        "type": "LONG"
    }, {
        "field": "teamMemberCnt",
        "alias": "团队成员数",
        "dim": "team_member_cnt",
        "type": "INT"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "ads_app_delivery_deployment_efficiency",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_delivery_deployment_efficiency",
    "alias": "应用交付部署效能",
    "responseParams": ["appInstanceId", "appInstanceName", "deliveryCntDailyAdditions", "deploymentCntDailyAdditions", "timestamp", "teamId", "appId", "teamMemberCnt", "hrEffectivenessRatioDaily"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "metricId",
        "alias": "指标定义ID",
        "dim": "metric_id",
        "type": "INT"
    }, {
        "field": "instanceId",
        "alias": "指标实例ID",
        "dim": "uid",
        "type": "STRING"
    }, {
        "field": "metricType",
        "alias": "指标类型",
        "dim": "type",
        "type": "STRING"
    }, {
        "field": "timestamp",
        "alias": "采集时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "value",
        "alias": "指标值",
        "dim": "value",
        "type": "DOUBLE"
    }, {
        "field": "labels",
        "alias": "实例标签",
        "dim": "labels",
        "type": "OBJECT"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND metric_id:{{metricId}} AND labels.{{labelName}}:{{labelValue}}",
    "dataSourceTable": "dwd_original_metric_data_di",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "metric_data",
    "alias": "指标数据接口",
    "responseParams": ["metricId", "instanceId", "metricType", "timestamp", "value", "labels"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "",
        "name": "metricId",
        "alias": "指标ID",
        "type": "INT",
        "required": True
    }, {
        "name": "labelName",
        "alias": "指标标签KEY",
        "type": "STRING",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "labelValue",
        "alias": "指标标签VALUE",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [],
    "sortFields": [{
        "dim": "timestamp",
        "order": "asc"
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "instanceId",
        "alias": "指标实例ID",
        "dim": "uid",
        "type": "STRING"
    }, {
        "field": "metricType",
        "alias": "指标类型",
        "dim": "type",
        "type": "STRING"
    }, {
        "field": "timestamp",
        "alias": "采集时间戳",
        "dim": "timestamp",
        "type": "LONG"
    }, {
        "field": "value",
        "alias": "指标值",
        "dim": "value",
        "type": "DOUBLE"
    }, {
        "field": "labels",
        "alias": "实例标签",
        "dim": "labels",
        "type": "OBJECT"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "timestamp [{{sTimestamp}} TO {{eTimestamp}}} AND metric_name:{{metricName}} AND labels.app_instance_id:{{appInstanceId}}",
    "dataSourceTable": "dwd_original_metric_data_di",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "app_metric_data",
    "alias": "应用指标数据接口",
    "responseParams": ["instanceId", "metricType", "timestamp", "value", "labels"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appInstanceId",
        "alias": "应用实例ID",
        "type": "STRING",
        "required": False
    }, {
        "defaultValue": "*",
        "name": "metricName",
        "alias": "指标名称",
        "type": "STRING",
        "required": False
    }],
    "groupFields": [],
    "sortFields": [{
        "dim": "timestamp",
        "order": "asc"
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "id",
        "alias": "事件ID",
        "dim": "id",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "namespace",
        "type": "STRING"
    }, {
        "field": "podName",
        "alias": "pod名称",
        "dim": "pod_name",
        "type": "STRING"
    }, {
        "field": "type",
        "alias": "事件类型",
        "dim": "type",
        "type": "STRING"
    }, {
        "field": "reason",
        "alias": "事件原因",
        "dim": "reason",
        "type": "STRING"
    }, {
        "field": "message",
        "alias": "事件详情",
        "dim": "message",
        "type": "STRING"
    }, {
        "field": "gmtOccur",
        "alias": "发生时间",
        "dim": "gmt_occur",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "gmt_occur [{{sTimestamp}} TO {{eTimestamp}}}",
    "dataSourceTable": "dwd_original_pod_event_di",
    "buildIn": True,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_event",
    "alias": "POD事件明细",
    "responseParams": ["id", "namespace", "podName", "type", "reason", "gmtOccur", "message"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }],
    "groupFields": [],
    "sortFields": [{
        "dim": "gmt_occur",
        "order": "asc"
    }]
}, {
    "creator": "999999999",
    "queryFields": [{
        "field": "appId",
        "alias": "应用ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appId",
        "type": "STRING"
    }, {
        "field": "appInstanceId",
        "alias": "应用实例ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appInstanceId",
        "type": "STRING"
    }, {
        "field": "appInstanceName",
        "alias": "应用实例名称",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/appInstanceName",
        "type": "STRING"
    }, {
        "field": "appComponentName",
        "alias": "应用组件名称",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/componentName",
        "type": "STRING"
    }, {
        "field": "appComponentInstanceId",
        "alias": "应用组件实例ID",
        "dim": "kubernetes.labels.labels_appmanager_oam_dev/componentInstanceId",
        "type": "STRING"
    }, {
        "field": "namespace",
        "alias": "命名空间",
        "dim": "kubernetes.namespace",
        "type": "STRING"
    }, {
        "field": "podName",
        "alias": "POD名称",
        "dim": "kubernetes.pod.name",
        "type": "STRING"
    }, {
        "field": "podStatus",
        "alias": "POD状态",
        "dim": "kubernetes.pod.status",
        "type": "OBJECT"
    }, {
        "field": "timestamp",
        "alias": "时间戳",
        "dim": "@timestamp",
        "type": "LONG"
    }],
    "requestMethod": "GET",
    "lastModifier": "999999999",
    "paging": True,
    "qlTemplate": "@timestamp:[{{sTimestamp}} TO {{eTimestamp}}} AND service.type:kubernetes AND metricset.name:state_pod AND kubernetes.labels.stageId:prod AND kubernetes.labels.labels_appmanager_oam_dev\\/appId:{{appId}}",
    "dataSourceTable": "metricbeat",
    "buildIn": False,
    "mode": "guide",
    "dataSourceId": "1",
    "name": "pod_status",
    "alias": "POD状态明细",
    "responseParams": ["appInstanceId", "appInstanceName", "appComponentName", "appComponentInstanceId", "namespace", "podName", "podStatus", "timestamp", "appId"],
    "contentType": "application/json",
    "dataSourceType": "es",
    "requestParams": [{
        "name": "sTimestamp",
        "alias": "开始时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "name": "eTimestamp",
        "alias": "结束时间戳(ms)",
        "type": "LONG",
        "required": True
    }, {
        "defaultValue": "*",
        "name": "appId",
        "alias": "应用ID",
        "type": "STRING",
        "required": True
    }],
    "groupFields": [],
    "sortFields": []
}]


def add_interfaces():
    url = host["dataset"] + "/interfaceConfig_v2/createConfig"
    for interface in interfaces:
        r = requests.post(url, headers=headers, json=interface)
        if r.status_code == 200:
            print(r.json())
