# coding: utf-8

import datetime
import requests
from common.constant import host

headers = {}
# host = {
#     "warehouse": "http://prod-dataops-warehouse.sreworks-dataops.svc.cluster.local:80"
# }

url = host["warehouse"] + "/model/meta/createModelWithFields"
sw_schemas = [{
    "metaReq": {
        "description": "风险定义模型(全量分区)",
        "tableAlias": "dwd_stability_risk_df",
        "layer": "dwd",
        "tableName": "<dwd_stability_risk_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "RISK",
        "alias": "风险定义",
        "partitionFormat": "d",
        "domainId": 1,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "组件名称",
        "description": "组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "归属应用ID",
        "description": "风险所属的应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appName",
        "nullable": True,
        "alias": "应用名称",
        "description": "应用名称",
        "dim": "app_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "category",
        "nullable": False,
        "alias": "类型",
        "description": "类型(risk)",
        "dim": "category",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "creator",
        "nullable": True,
        "alias": "创建人",
        "description": "创建人",
        "dim": "creator",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "description",
        "nullable": True,
        "alias": "说明",
        "description": "备注说明信息",
        "dim": "description",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "enable",
        "nullable": True,
        "alias": "是否启用",
        "description": "是否启用",
        "dim": "enable",
        "type": "BOOLEAN"
    }, {
        "buildIn": True,
        "field": "gmtCreate",
        "nullable": True,
        "alias": "创建时间",
        "description": "创建时间",
        "dim": "gmt_create",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtModified",
        "nullable": True,
        "alias": "修改时间",
        "description": "最近修改时间",
        "dim": "gmt_modified",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "风险ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "lastModifier",
        "nullable": True,
        "alias": "最近修改人",
        "description": "最近修改人",
        "dim": "last_modifier",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "name",
        "nullable": False,
        "alias": "风险名称",
        "description": "风险名称",
        "dim": "name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "storageDays",
        "nullable": True,
        "alias": "实例保留天数",
        "description": "风险实例保留天数",
        "dim": "storage_days",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "tags",
        "nullable": True,
        "alias": "标签",
        "description": "风险标签",
        "dim": "tags",
        "type": "ARRAY"
    }, {
        "buildIn": True,
        "field": "weight",
        "nullable": True,
        "alias": "健康权重",
        "description": "健康权重",
        "dim": "weight",
        "type": "INTEGER"
    }]
}, {
    "metaReq": {
        "description": "风险实例模型(增量分区)",
        "tableAlias": "dwd_stability_risk_instance_di",
        "layer": "dwd",
        "tableName": "<dwd_stability_risk_instance_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "RISK_INSTANCE",
        "alias": "风险实例",
        "partitionFormat": "d",
        "domainId": 1,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentInstanceId",
        "nullable": True,
        "alias": "应用组件实例ID",
        "description": "应用组件实例ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appName",
        "nullable": True,
        "alias": "应用名称",
        "description": "应用名称",
        "dim": "app_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "content",
        "nullable": True,
        "alias": "风险详情",
        "description": "风险详情",
        "dim": "content",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "defId",
        "nullable": False,
        "alias": "关联定义ID",
        "description": "风险实例所属的定义ID",
        "dim": "def_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "defName",
        "nullable": False,
        "alias": "关联定义名称",
        "description": "风险实例所属的定义名称",
        "dim": "def_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "gmtCreate",
        "nullable": True,
        "alias": "创建时间",
        "description": "风险实例创建时间",
        "dim": "gmt_create",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtModified",
        "nullable": True,
        "alias": "修改时间",
        "description": "风险实例最近修改时间",
        "dim": "gmt_modified",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtOccur",
        "nullable": True,
        "alias": "发生时间",
        "description": "风险发生时间",
        "dim": "gmt_occur",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "风险实例ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "source",
        "nullable": True,
        "alias": "风险来源",
        "description": "风险来源",
        "dim": "source",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "告警定义模型(全量分区)",
        "tableAlias": "dwd_stability_alert_df",
        "layer": "dwd",
        "tableName": "<dwd_stability_alert_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "ALERT",
        "alias": "告警定义",
        "partitionFormat": "d",
        "domainId": 1,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "alertRuleConfig",
        "nullable": True,
        "alias": "告警规则",
        "description": "告警规则配置",
        "dim": "alert_rule_config",
        "type": "OBJECT"
    }, {
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "归属应用ID",
        "description": "告警所属的应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appName",
        "nullable": True,
        "alias": "应用名称",
        "description": "应用名称",
        "dim": "app_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "category",
        "nullable": False,
        "alias": "类型",
        "description": "类型(alert)",
        "dim": "category",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "creator",
        "nullable": True,
        "alias": "创建人",
        "description": "创建人",
        "dim": "creator",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "description",
        "nullable": True,
        "alias": "说明",
        "description": "备注说明信息",
        "dim": "description",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "enable",
        "nullable": True,
        "alias": "是否启用",
        "description": "是否启用",
        "dim": "enable",
        "type": "BOOLEAN"
    }, {
        "buildIn": True,
        "field": "gmtCreate",
        "nullable": True,
        "alias": "创建时间",
        "description": "创建时间",
        "dim": "gmt_create",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtModified",
        "nullable": True,
        "alias": "修改时间",
        "description": "最近修改时间",
        "dim": "gmt_modified",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "granularity",
        "nullable": True,
        "alias": "关联指标时间粒度",
        "description": "分钟粒度",
        "dim": "granularity",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "告警ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "lastModifier",
        "nullable": True,
        "alias": "最近修改人",
        "description": "最近修改人",
        "dim": "last_modifier",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "metricId",
        "nullable": True,
        "alias": "关联指标ID",
        "description": "关联指标定义ID",
        "dim": "metric_id",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "name",
        "nullable": False,
        "alias": "告警名称",
        "description": "告警名称",
        "dim": "name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "noticeConfig",
        "nullable": True,
        "alias": "告警通知配置",
        "description": "告警通知配置",
        "dim": "notice_config",
        "type": "OBJECT"
    }, {
        "buildIn": True,
        "field": "storageDays",
        "nullable": True,
        "alias": "实例保留天数",
        "description": "告警实例保留天数",
        "dim": "storage_days",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "weight",
        "nullable": True,
        "alias": "健康权重",
        "description": "健康权重",
        "dim": "weight",
        "type": "INTEGER"
    }]
}, {
    "metaReq": {
        "description": "告警实例模型(增量分区)",
        "tableAlias": "dwd_stability_alert_instance_di",
        "layer": "dwd",
        "tableName": "<dwd_stability_alert_instance_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "ALERT_INSTANCE",
        "alias": "告警实例",
        "partitionFormat": "d",
        "domainId": 1,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appName",
        "nullable": True,
        "alias": "应用名称",
        "description": "应用名称",
        "dim": "app_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "content",
        "nullable": True,
        "alias": "告警内容",
        "description": "告警内容",
        "dim": "content",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "defId",
        "nullable": False,
        "alias": "关联定义ID",
        "description": "告警实例所属的定义ID",
        "dim": "def_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "defName",
        "nullable": False,
        "alias": "关联定义名称",
        "description": "告警实例所属的定义名称",
        "dim": "def_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "gmtCreate",
        "nullable": True,
        "alias": "创建时间",
        "description": "告警实例创建时间",
        "dim": "gmt_create",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtModified",
        "nullable": True,
        "alias": "修改时间",
        "description": "告警实例最近修改时间",
        "dim": "gmt_modified",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtOccur",
        "nullable": True,
        "alias": "发生时间",
        "description": "告警发生时间",
        "dim": "gmt_occur",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "告警实例ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "level",
        "nullable": True,
        "alias": "告警等级",
        "description": "告警等级",
        "dim": "level",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "receivers",
        "nullable": True,
        "alias": "告警接收人",
        "description": "告警接收人",
        "dim": "receivers",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "source",
        "nullable": True,
        "alias": "告警来源",
        "description": "告警来源",
        "dim": "source",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "异常定义模型(全量分区)",
        "tableAlias": "dwd_stability_incident_df",
        "layer": "dwd",
        "tableName": "<dwd_stability_incident_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "INCIDENT",
        "alias": "异常定义",
        "partitionFormat": "d",
        "domainId": 1,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "归属应用ID",
        "description": "异常所属的应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appName",
        "nullable": True,
        "alias": "应用名称",
        "description": "应用名称",
        "dim": "app_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "category",
        "nullable": False,
        "alias": "类型",
        "description": "类型(incident)",
        "dim": "category",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "creator",
        "nullable": True,
        "alias": "创建人",
        "description": "创建人",
        "dim": "creator",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "description",
        "nullable": True,
        "alias": "说明",
        "description": "备注说明信息",
        "dim": "description",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "gmtCreate",
        "nullable": True,
        "alias": "创建时间",
        "description": "创建时间",
        "dim": "gmt_create",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtModified",
        "nullable": True,
        "alias": "修改时间",
        "description": "最近修改时间",
        "dim": "gmt_modified",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "异常ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "incidentType",
        "nullable": False,
        "alias": "异常类型",
        "description": "异常类型",
        "dim": "incident_type",
        "type": "OBJECT"
    }, {
        "buildIn": True,
        "field": "lastModifier",
        "nullable": True,
        "alias": "最近修改人",
        "description": "最近修改人",
        "dim": "last_modifier",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "name",
        "nullable": False,
        "alias": "异常名称",
        "description": "异常名称",
        "dim": "name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "selfHealing",
        "nullable": True,
        "alias": "是否自愈",
        "description": "是否自愈",
        "dim": "self_healing",
        "type": "BOOLEAN"
    }, {
        "buildIn": True,
        "field": "weight",
        "nullable": True,
        "alias": "健康权重",
        "description": "健康权重",
        "dim": "weight",
        "type": "INTEGER"
    }]
}, {
    "metaReq": {
        "description": "异常实例模型(增量分区)",
        "tableAlias": "dwd_stability_incident_instance_di",
        "layer": "dwd",
        "tableName": "<dwd_stability_incident_instance_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "INCIDENT_INSTANCE",
        "alias": "异常实例",
        "partitionFormat": "d",
        "domainId": 1,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentInstanceId",
        "nullable": True,
        "alias": "应用组件实例ID",
        "description": "应用组件实例ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appName",
        "nullable": True,
        "alias": "应用名称",
        "description": "应用名称",
        "dim": "app_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "cause",
        "nullable": True,
        "alias": "异常产生原因",
        "description": "异常产生原因",
        "dim": "cause",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "defId",
        "nullable": False,
        "alias": "关联定义ID",
        "description": "异常实例所属的定义ID",
        "dim": "def_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "defName",
        "nullable": False,
        "alias": "关联定义名称",
        "description": "异常实例所属的定义名称",
        "dim": "def_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "description",
        "nullable": True,
        "alias": "说明",
        "description": "备注说明信息",
        "dim": "description",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "gmtCreate",
        "nullable": True,
        "alias": "创建时间",
        "description": "异常实例创建时间",
        "dim": "gmt_create",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtLastOccur",
        "nullable": True,
        "alias": "最近发生时间",
        "description": "最近发生时间",
        "dim": "gmt_last_occur",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtModified",
        "nullable": True,
        "alias": "修改时间",
        "description": "异常实例最近修改时间",
        "dim": "gmt_modified",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtOccur",
        "nullable": True,
        "alias": "发生时间",
        "description": "异常发生时间",
        "dim": "gmt_occur",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtRecovery",
        "nullable": True,
        "alias": "恢复时间",
        "description": "异常恢复时间",
        "dim": "gmt_recovery",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtSelfHealingEnd",
        "nullable": True,
        "alias": "自愈结束时间",
        "description": "自愈结束时间",
        "dim": "gmt_self_healing_end",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtSelfHealingStart",
        "nullable": True,
        "alias": "自愈开始时间",
        "description": "自愈开始时间",
        "dim": "gmt_self_healing_start",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "异常实例ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "occurTimes",
        "nullable": True,
        "alias": "最近连续发生次数",
        "description": "最近连续发生次数",
        "dim": "occur_times",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "options",
        "nullable": True,
        "alias": "扩展信息",
        "description": "用户自定义参数",
        "dim": "options",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "selfHealingStatus",
        "nullable": True,
        "alias": "自愈状态",
        "description": "自愈状态",
        "dim": "self_healing_status",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "source",
        "nullable": True,
        "alias": "异常来源",
        "description": "异常来源",
        "dim": "source",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "spanId",
        "nullable": False,
        "alias": "层次ID",
        "description": "层次ID",
        "dim": "span_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "traceId",
        "nullable": False,
        "alias": "任务链ID",
        "description": "任务链ID",
        "dim": "trace_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "typeId",
        "nullable": False,
        "alias": "异常类型ID",
        "description": "异常类型ID",
        "dim": "type_id",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "typeName",
        "nullable": False,
        "alias": "异常类型名称",
        "description": "异常类型名称",
        "dim": "type_name",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "故障定义模型(全量分区)",
        "tableAlias": "dwd_stability_failure_df",
        "layer": "dwd",
        "tableName": "<dwd_stability_failure_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "FAILURE",
        "alias": "故障定义",
        "partitionFormat": "d",
        "domainId": 1,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "归属应用ID",
        "description": "故障所属的应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appName",
        "nullable": True,
        "alias": "应用名称",
        "description": "归属应用名称",
        "dim": "app_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "category",
        "nullable": False,
        "alias": "类型",
        "description": "类型(failure)",
        "dim": "category",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "creator",
        "nullable": True,
        "alias": "创建人",
        "description": "创建人",
        "dim": "creator",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "description",
        "nullable": True,
        "alias": "说明",
        "description": "备注说明信息",
        "dim": "description",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "failureLevelRule",
        "nullable": False,
        "alias": "故障等级定义规则",
        "description": "故障等级定义规则",
        "dim": "failure_level_rule",
        "type": "OBJECT"
    }, {
        "buildIn": True,
        "field": "gmtCreate",
        "nullable": True,
        "alias": "创建时间",
        "description": "创建时间",
        "dim": "gmt_create",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtModified",
        "nullable": True,
        "alias": "修改时间",
        "description": "最近修改时间",
        "dim": "gmt_modified",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "故障ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "lastModifier",
        "nullable": True,
        "alias": "最近修改人",
        "description": "最近修改人",
        "dim": "last_modifier",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "name",
        "nullable": False,
        "alias": "故障名称",
        "description": "故障名称",
        "dim": "name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "refIncidentDefId",
        "nullable": False,
        "alias": "关联异常ID",
        "description": "关联异常ID",
        "dim": "ref_incident_def_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "refIncidentDefName",
        "nullable": False,
        "alias": "关联异常名称",
        "description": "关联异常名称",
        "dim": "ref_incident_def_name",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "故障实例模型(增量分区)",
        "tableAlias": "dwd_stability_failure_instance_di",
        "layer": "dwd",
        "tableName": "<dwd_stability_failure_instance_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "FAILURE_INSTANCE",
        "alias": "故障实例",
        "partitionFormat": "d",
        "domainId": 1,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentInstanceId",
        "nullable": True,
        "alias": "应用组件实例ID",
        "description": "应用组件实例ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appName",
        "nullable": True,
        "alias": "应用名称",
        "description": "应用名称",
        "dim": "app_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "defId",
        "nullable": False,
        "alias": "关联定义ID",
        "description": "故障实例所属的定义ID",
        "dim": "def_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "defName",
        "nullable": False,
        "alias": "关联定义名称",
        "description": "故障实例所属的定义名称",
        "dim": "def_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "gmtCreate",
        "nullable": True,
        "alias": "创建时间",
        "description": "故障实例创建时间",
        "dim": "gmt_create",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtModified",
        "nullable": True,
        "alias": "修改时间",
        "description": "故障实例最近修改时间",
        "dim": "gmt_modified",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmtOccur",
        "nullable": True,
        "alias": "发生时间",
        "description": "故障发生时间",
        "dim": "gmt_occur",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "故障实例ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "incidentId",
        "nullable": False,
        "alias": "异常实例ID",
        "description": "异常实例ID",
        "dim": "incident_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "level",
        "nullable": False,
        "alias": "故障等级",
        "description": "故障等级",
        "dim": "level",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "name",
        "nullable": False,
        "alias": "故障名称",
        "description": "故障名称",
        "dim": "name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "refIncidentDefId",
        "nullable": False,
        "alias": "关联异常ID",
        "description": "关联异常ID",
        "dim": "ref_incident_def_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "refIncidentDefName",
        "nullable": False,
        "alias": "关联异常名称",
        "description": "关联异常名称",
        "dim": "ref_incident_def_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "refIncidentTypeId",
        "nullable": False,
        "alias": "关联异常类型ID",
        "description": "关联异常类型ID",
        "dim": "ref_incident_type_id",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "refIncidentTypeLabel",
        "nullable": False,
        "alias": "关联异常类型标识",
        "description": "关联异常类型标识",
        "dim": "ref_incident_type_label",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "refIncidentTypeName",
        "nullable": False,
        "alias": "关联异常类型名称",
        "description": "关联异常类型名称",
        "dim": "ref_incident_type_name",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "异常类型维度模型",
        "tableAlias": "dim_stability_incident_type",
        "layer": "dim",
        "tableName": "<dim_stability_incident_type_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "INCIDENT_TYPE",
        "alias": "异常类型",
        "partitionFormat": "d",
        "domainId": 1
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "creator",
        "nullable": True,
        "alias": "创建人",
        "description": "创建人",
        "dim": "creator",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "description",
        "nullable": True,
        "alias": "说明",
        "description": "备注说明信息",
        "dim": "description",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "gmt_create",
        "nullable": True,
        "alias": "创建时间",
        "description": "创建时间",
        "dim": "gmt_create",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "gmt_modified",
        "nullable": True,
        "alias": "修改时间",
        "description": "最近修改时间",
        "dim": "gmt_modified",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "异常类型ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "label",
        "nullable": False,
        "alias": "异常类型标识",
        "description": "唯一标识",
        "dim": "label",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "last_modifier",
        "nullable": True,
        "alias": "最近修改人",
        "description": "最近修改人",
        "dim": "last_modifier",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "mq_topic",
        "nullable": False,
        "alias": "消息队列topic",
        "description": "消息队列topic",
        "dim": "mq_topic",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "name",
        "nullable": False,
        "alias": "异常类型名称",
        "description": "异常类型名称",
        "dim": "name",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "命名空间维度模型",
        "tableAlias": "dim_business_namespace",
        "layer": "dim",
        "tableName": "<dim_business_namespace_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "NAMESPACE",
        "alias": "命名空间",
        "partitionFormat": "d",
        "domainId": 9
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "命名空间ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "租户维度模型",
        "tableAlias": "dim_business_tenant",
        "layer": "dim",
        "tableName": "<dim_business_tenant_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "TENANT",
        "alias": "租户",
        "partitionFormat": "d",
        "domainId": 9
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "租户ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "账户维度模型",
        "tableAlias": "dim_business_account",
        "layer": "dim",
        "tableName": "<dim_business_account_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "ACCOUNT",
        "alias": "账户",
        "partitionFormat": "d",
        "domainId": 9
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "账户ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "托管类型维度模型",
        "tableAlias": "dim_platform_colocation_type",
        "layer": "dim",
        "tableName": "<dim_platform_colocation_type_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "COLOCATION_TYPE",
        "alias": "托管类型",
        "partitionFormat": "d",
        "domainId": 8
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "托管类型ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "版本维度模型",
        "tableAlias": "dim_system_version",
        "layer": "dim",
        "tableName": "<dim_system_version_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "VERSION",
        "alias": "版本",
        "partitionFormat": "d",
        "domainId": 7
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "版本ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "产品维度模型",
        "tableAlias": "dim_platform_product",
        "layer": "dim",
        "tableName": "<dim_platform_product_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "PRODUCT",
        "alias": "产品",
        "partitionFormat": "d",
        "domainId": 8
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "产品ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "厂商维度模型",
        "tableAlias": "dim_resource_vendor",
        "layer": "dim",
        "tableName": "<dim_resource_vendor_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "VENDOR",
        "alias": "厂商",
        "partitionFormat": "d",
        "domainId": 6
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "厂商ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "机型维度模型",
        "tableAlias": "dim_resource_machine_model",
        "layer": "dim",
        "tableName": "<dim_resource_machine_model_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "MACHINE_MODEL",
        "alias": "机型",
        "partitionFormat": "d",
        "domainId": 6
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "机型ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "地域维度模型",
        "tableAlias": "dim_resource_region",
        "layer": "dim",
        "tableName": "<dim_resource_region_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "REGION",
        "alias": "地域",
        "partitionFormat": "d",
        "domainId": 6
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "地域ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "可用区维度模型",
        "tableAlias": "dim_resource_zone",
        "layer": "dim",
        "tableName": "<dim_resource_zone_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "ZONE",
        "alias": "可用区",
        "partitionFormat": "d",
        "domainId": 6
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "可用区ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "服务等级协议模型(全量分区)",
        "tableAlias": "dwd_stability_sla_df",
        "layer": "dwd",
        "tableName": "<dwd_stability_sla_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "SLA",
        "alias": "服务等级协议",
        "partitionFormat": "d",
        "domainId": 1,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "协议ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "服务等级对象维度模型",
        "tableAlias": "dim_stability_sli",
        "layer": "dim",
        "tableName": "<dim_stability_sli_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "SLI",
        "alias": "服务等级对象",
        "partitionFormat": "d",
        "domainId": 1
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "对象ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "指标类型维度模型",
        "tableAlias": "dim_original_metric_type",
        "layer": "dim",
        "tableName": "<dim_original_metric_type_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "METRIC_TYPE",
        "alias": "指标类型",
        "partitionFormat": "d",
        "domainId": 4
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "类型ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "预算模型(全量分区)",
        "tableAlias": "dwd_cost_budget_df",
        "layer": "dwd",
        "tableName": "<dwd_cost_budget_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "BUDGET",
        "alias": "预算",
        "partitionFormat": "d",
        "domainId": 2,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "预算ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "容量模型(全量分区)",
        "tableAlias": "dwd_cost_capacity_df",
        "layer": "dwd",
        "tableName": "<dwd_cost_capacity_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "CAPACITY",
        "alias": "容量",
        "partitionFormat": "d",
        "domainId": 2,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "资源池模型(全量分区)",
        "tableAlias": "dwd_cost_resource_df",
        "layer": "dwd",
        "tableName": "<dwd_cost_resource_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "RESOURCE",
        "alias": "资源池",
        "partitionFormat": "d",
        "domainId": 2,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "账单模型(全量分区)",
        "tableAlias": "dwd_cost_bill_df",
        "layer": "dwd",
        "tableName": "<dwd_cost_bill_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "BILL",
        "alias": "账单",
        "partitionFormat": "d",
        "domainId": 2,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "账单ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "巡检模型(增量分区)",
        "tableAlias": "dwd_efficiency_inspection_di",
        "layer": "dwd",
        "tableName": "<dwd_efficiency_inspection_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "INSPECTION",
        "alias": "巡检",
        "partitionFormat": "d",
        "domainId": 3,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "巡检ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "分析模型(增量分区)",
        "tableAlias": "dwd_efficiency_analysis_di",
        "layer": "dwd",
        "tableName": "<dwd_efficiency_analysis_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "ANALYSIS",
        "alias": "分析",
        "partitionFormat": "d",
        "domainId": 3,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "分析任务ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "诊断模型(增量分区)",
        "tableAlias": "dwd_efficiency_diagnosis_di",
        "layer": "dwd",
        "tableName": "<dwd_efficiency_diagnosis_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "DIAGNOSIS",
        "alias": "诊断",
        "partitionFormat": "d",
        "domainId": 3,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "诊断ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "变更模型(增量分区)",
        "tableAlias": "dwd_efficiency_change_di",
        "layer": "dwd",
        "tableName": "<dwd_efficiency_change_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "CHANGE",
        "alias": "变更",
        "partitionFormat": "d",
        "domainId": 3,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "变更ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "操作模型(增量分区)",
        "tableAlias": "dwd_efficiency_operation_di",
        "layer": "dwd",
        "tableName": "<dwd_efficiency_operation_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "OPERATION",
        "alias": "操作",
        "partitionFormat": "d",
        "domainId": 3,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "操作ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "工单模型(全量分区)",
        "tableAlias": "dwd_efficiency_ticket_df",
        "layer": "dwd",
        "tableName": "<dwd_efficiency_ticket_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "TICKET",
        "alias": "工单",
        "partitionFormat": "d",
        "domainId": 3,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "工单ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "知识模型(全量分区)",
        "tableAlias": "dwd_efficiency_knowledge_df",
        "layer": "dwd",
        "tableName": "<dwd_efficiency_knowledge_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "KNOWLEDGE",
        "alias": "知识",
        "partitionFormat": "d",
        "domainId": 3,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "知识ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "答疑模型(增量分区)",
        "tableAlias": "dwd_efficiency_qa_di",
        "layer": "dwd",
        "tableName": "<dwd_efficiency_qa_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "QA",
        "alias": "答疑",
        "partitionFormat": "d",
        "domainId": 3,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "答疑ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "通知模型(全量分区)",
        "tableAlias": "dwd_efficiency_notice_df",
        "layer": "dwd",
        "tableName": "<dwd_efficiency_notice_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "NOTICE",
        "alias": "通知",
        "partitionFormat": "d",
        "domainId": 3,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "通知ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "指标定义模型(全量分区)",
        "tableAlias": "dwd_original_metric_df",
        "layer": "dwd",
        "tableName": "<dwd_original_metric_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "METRIC",
        "alias": "指标定义",
        "partitionFormat": "d",
        "domainId": 4,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "指标定义ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "指标实例模型(全量分区)",
        "tableAlias": "dwd_original_metric_instance_df",
        "layer": "dwd",
        "tableName": "<dwd_original_metric_instance_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "METRIC_INSTANCE",
        "alias": "指标实例",
        "partitionFormat": "d",
        "domainId": 4,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "指标实例ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "事件定义模型(全量分区)",
        "tableAlias": "dwd_original_event_df",
        "layer": "dwd",
        "tableName": "<dwd_original_event_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "EVENT",
        "alias": "事件定义",
        "partitionFormat": "d",
        "domainId": 4,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "事件定义ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "事件实例模型(增量分区)",
        "tableAlias": "dwd_original_event_instance_di",
        "layer": "dwd",
        "tableName": "<dwd_original_event_instance_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "EVENT_INSTANCE",
        "alias": "事件实例",
        "partitionFormat": "d",
        "domainId": 4,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentInstanceId",
        "nullable": True,
        "alias": "应用组件实例ID",
        "description": "应用组件实例ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appName",
        "nullable": True,
        "alias": "应用名称",
        "description": "应用名称",
        "dim": "app_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "type",
        "nullable": True,
        "alias": "事件类别",
        "description": "事件类别",
        "dim": "type",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "content",
        "nullable": True,
        "alias": "事件详情",
        "description": "事件详情",
        "dim": "content",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "gmtOccur",
        "nullable": True,
        "alias": "发生时间",
        "description": "事件发生时间",
        "dim": "gmt_occur",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "事件实例ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "source",
        "nullable": True,
        "alias": "事件来源",
        "description": "事件来源",
        "dim": "source",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": True,
        "alias": "入库时间",
        "description": "入库时间",
        "dim": "timestamp",
        "type": "DATE"
    }]
}, {
    "metaReq": {
        "description": "日志元信息模型(全量分区)",
        "tableAlias": "dwd_original_log_df",
        "layer": "dwd",
        "tableName": "<dwd_original_log_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "LOG",
        "alias": "日志",
        "partitionFormat": "d",
        "domainId": 4,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "日志元信息ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "聚类模式模型(全量分区)",
        "tableAlias": "dwd_derivation_pattern_df",
        "layer": "dwd",
        "tableName": "<dwd_derivation_pattern_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "PATTERN",
        "alias": "聚类模式",
        "partitionFormat": "d",
        "domainId": 5,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "模式ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "特征模型(全量分区)",
        "tableAlias": "dwd_derivation_feature_df",
        "layer": "dwd",
        "tableName": "<dwd_derivation_feature_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "FEATURE",
        "alias": "特征",
        "partitionFormat": "d",
        "domainId": 5,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "特征ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "调用链模型(增量分区)",
        "tableAlias": "dwd_derivation_chain_di",
        "layer": "dwd",
        "tableName": "<dwd_derivation_chain_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "CHAIN",
        "alias": "调用链",
        "partitionFormat": "d",
        "domainId": 5,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "调用链ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "时间线模型(增量分区)",
        "tableAlias": "dwd_derivation_timeline_di",
        "layer": "dwd",
        "tableName": "<dwd_derivation_timeline_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "TIMELINE",
        "alias": "时间线",
        "partitionFormat": "d",
        "domainId": 5,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "时间线ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "节点/机器/主机模型(全量分区)",
        "tableAlias": "dwd_resource_node_df",
        "layer": "dwd",
        "tableName": "<dwd_resource_node_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "NODE",
        "alias": "节点",
        "partitionFormat": "d",
        "domainId": 6,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "节点ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "集群模型(全量分区)",
        "tableAlias": "dwd_resource_cluster_df",
        "layer": "dwd",
        "tableName": "<dwd_resource_cluster_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "CLUSTER",
        "alias": "集群",
        "partitionFormat": "d",
        "domainId": 6,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "集群ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "容器模型(全量分区)",
        "tableAlias": "dwd_resource_pod_df",
        "layer": "dwd",
        "tableName": "<dwd_resource_pod_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "POD",
        "alias": "容器",
        "partitionFormat": "d",
        "domainId": 6,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "容器ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "云服务模型(全量分区)",
        "tableAlias": "dwd_resource_cloud_service_df",
        "layer": "dwd",
        "tableName": "<dwd_resource_cloud_service_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "CLOUD_SERVICE",
        "alias": "云服务",
        "partitionFormat": "d",
        "domainId": 6,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "云服务ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "云资源模型(全量分区)",
        "tableAlias": "dwd_resource_cloud_resource_df",
        "layer": "dwd",
        "tableName": "<dwd_resource_cloud_resource_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "CLOUD_RESOURCE",
        "alias": "云资源",
        "partitionFormat": "d",
        "domainId": 6,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "云资源ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "系统调度模型(全量分区)",
        "tableAlias": "dwd_system_system_schedule_df",
        "layer": "dwd",
        "tableName": "<dwd_system_system_schedule_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "SYSTEM_SCHEDULE",
        "alias": "系统调度",
        "partitionFormat": "d",
        "domainId": 7,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "系统调度ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "系统服务模型(全量分区)",
        "tableAlias": "dwd_system_system_service_df",
        "layer": "dwd",
        "tableName": "<dwd_system_system_service_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "SYSTEM_SERVICE",
        "alias": "系统服务",
        "partitionFormat": "d",
        "domainId": 7,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "系统服务ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "系统组件模型(全量分区)",
        "tableAlias": "dwd_system_system_component_df",
        "layer": "dwd",
        "tableName": "<dwd_system_system_component_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "SYSTEM_COMPONENT",
        "alias": "系统组件",
        "partitionFormat": "d",
        "domainId": 7,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "系统组件ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "系统OS模型(全量分区)",
        "tableAlias": "dwd_system_system_os_df",
        "layer": "dwd",
        "tableName": "<dwd_system_system_os_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "SYSTEM_OS",
        "alias": "系统OS",
        "partitionFormat": "d",
        "domainId": 7,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "系统OS ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "系统内核模型(全量分区)",
        "tableAlias": "dwd_system_system_core_df",
        "layer": "dwd",
        "tableName": "<dwd_system_system_core_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "SYSTEM_CORE",
        "alias": "系统内核",
        "partitionFormat": "d",
        "domainId": 7,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "系统内核ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "系统K8S模型(全量分区)",
        "tableAlias": "dwd_system_kubernetes_df",
        "layer": "dwd",
        "tableName": "<dwd_system_kubernetes_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "KUBERNETES",
        "alias": "K8S",
        "partitionFormat": "d",
        "domainId": 7,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "框架模型(全量分区)",
        "tableAlias": "dwd_platform_framework_df",
        "layer": "dwd",
        "tableName": "<dwd_platform_framework_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "FRAMEWORK",
        "alias": "框架",
        "partitionFormat": "d",
        "domainId": 8,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "框架ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "JVM模型(全量分区)",
        "tableAlias": "dwd_platform_jvm_df",
        "layer": "dwd",
        "tableName": "<dwd_platform_jvm_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "JVM",
        "alias": "JVM",
        "partitionFormat": "d",
        "domainId": 8,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "平台组件模型(全量分区)",
        "tableAlias": "dwd_platform_platform_component_df",
        "layer": "dwd",
        "tableName": "<dwd_platform_platform_component_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "PLATFORM_COMPONENT",
        "alias": "平台组件",
        "partitionFormat": "d",
        "domainId": 8,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "平台组件ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "平台服务模型(全量分区)",
        "tableAlias": "dwd_platform_platform_service_df",
        "layer": "dwd",
        "tableName": "<dwd_platform_platform_service_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "PLATFORM_SERVICE",
        "alias": "平台服务",
        "partitionFormat": "d",
        "domainId": 8,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "平台服务ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用组件模型(全量分区)",
        "tableAlias": "dwd_business_app_component_df",
        "layer": "dwd",
        "tableName": "<dwd_business_app_component_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_COMPONENT",
        "alias": "应用组件",
        "partitionFormat": "d",
        "domainId": 9,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "应用组件ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用模型(全量分区)",
        "tableAlias": "dwd_business_app_df",
        "layer": "dwd",
        "tableName": "<dwd_business_app_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP",
        "alias": "应用",
        "partitionFormat": "d",
        "domainId": 9,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "应用ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "API接口模型(全量分区)",
        "tableAlias": "dwd_business_api_df",
        "layer": "dwd",
        "tableName": "<dwd_business_api_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "API",
        "alias": "API接口",
        "partitionFormat": "d",
        "domainId": 9,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "API接口ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "作业模型(全量分区)",
        "tableAlias": "dwd_business_job_df",
        "layer": "dwd",
        "tableName": "<dwd_business_job_df_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "JOB",
        "alias": "作业",
        "partitionFormat": "d",
        "domainId": 9,
        "dataMode": "df"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "作业ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用健康度模型",
        "tableAlias": "ads_app_health",
        "layer": "ads",
        "tableName": "<ads_app_health_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_HEALTH",
        "alias": "应用健康度",
        "partitionFormat": "d",
        "tag": "监测"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "alertDefCnt",
        "nullable": True,
        "alias": "告警定义数量",
        "description": "告警定义数量",
        "dim": "alert_def_cnt",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "alertInstanceCnt",
        "nullable": True,
        "alias": "告警实例数量",
        "description": "告警实例数量",
        "dim": "alert_instance_cnt",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "alertInstanceCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增告警实例数量",
        "description": "每日新增告警实例数量",
        "dim": "alert_instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "failureDefCnt",
        "nullable": True,
        "alias": "故障定义数量",
        "description": "故障定义数量",
        "dim": "failure_def_cnt",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "failureInstanceCnt",
        "nullable": True,
        "alias": "故障实例数量",
        "description": "故障实例数量",
        "dim": "failure_instance_cnt",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "failureInstanceCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增故障实例数量",
        "description": "每日新增故障实例数量",
        "dim": "failure_instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "incidentDefCnt",
        "nullable": True,
        "alias": "异常定义数量",
        "description": "异常定义数量",
        "dim": "incident_def_cnt",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "incidentInstanceCnt",
        "nullable": True,
        "alias": "异常实例数量",
        "description": "异常实例数量",
        "dim": "incident_instance_cnt",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "incidentInstanceCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增异常实例数量",
        "description": "每日新增异常实例数量",
        "dim": "incident_instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "riskDefCnt",
        "nullable": True,
        "alias": "风险定义数量",
        "description": "风险定义数量",
        "dim": "risk_def_cnt",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "riskInstanceCnt",
        "nullable": True,
        "alias": "风险实例数量",
        "description": "风险实例数量",
        "dim": "risk_instance_cnt",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "riskInstanceCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增风险实例数量",
        "description": "每日新增风险实例数量",
        "dim": "risk_instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "sla",
        "nullable": True,
        "alias": "服务可用率",
        "description": "最近一周",
        "dim": "sla",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": False,
        "alias": "时间戳",
        "description": "时间戳",
        "dim": "timestamp",
        "type": "DATE"
    }]
}, {
    "metaReq": {
        "description": "容量模型",
        "tableAlias": "ads_app_capacity",
        "layer": "ads",
        "tableName": "<ads_app_capacity_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_CAPACITY",
        "alias": "应用容量",
        "partitionFormat": "d",
        "tag": "监测"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用自动化效率模型",
        "tableAlias": "ads_app_auto_efficiency",
        "layer": "ads",
        "tableName": "<ads_app_auto_efficiency_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_AUTO_EFFICIENCY",
        "alias": "应用自动化效率",
        "partitionFormat": "d",
        "tag": "管理"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appId",
        "nullable": True,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": True,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceName",
        "nullable": True,
        "alias": "应用实例名称",
        "description": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "deliveryCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增构建次数",
        "description": "每日新增构建次数",
        "dim": "delivery_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "deliverySuccessCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增成功构建次数",
        "description": "每日新增成功构建次数",
        "dim": "delivery_success_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "deliverySuccessRateDaily",
        "nullable": True,
        "alias": "每日构建成功率",
        "description": "每日构建成功率",
        "dim": "delivery_success_rate_daily",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "id",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用工单完成率模型",
        "tableAlias": "ads_app_ticket_completion_rate",
        "layer": "ads",
        "tableName": "<ads_app_ticket_completion_rate_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_TICKET_COMPLETION_RATE",
        "alias": "应用工单完成率",
        "partitionFormat": "d",
        "tag": "管理"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用自愈数据模型",
        "tableAlias": "ads_app_self_healing",
        "layer": "ads",
        "tableName": "<ads_app_self_healing_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_SELF_HEALING",
        "alias": "应用自愈",
        "partitionFormat": "d",
        "tag": "控制"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用无人值守比例模型",
        "tableAlias": "ads_app_unattended_rate",
        "layer": "ads",
        "tableName": "<ads_app_unattended_rate_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_UNATTENDED_RATE",
        "alias": "应用无人值守比例",
        "partitionFormat": "d",
        "tag": "控制"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用质量模型",
        "tableAlias": "ads_app_quality",
        "layer": "ads",
        "tableName": "<ads_app_quality_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_QUALITY",
        "alias": "应用质量",
        "partitionFormat": "d",
        "tag": "运营"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用效率模型",
        "tableAlias": "ads_app_efficiency",
        "layer": "ads",
        "tableName": "<ads_app_efficiency_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_EFFICIENCY",
        "alias": "应用效率",
        "partitionFormat": "d",
        "tag": "运营"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用用户满意度模型",
        "tableAlias": "ads_app_customer_satisfaction",
        "layer": "ads",
        "tableName": "<ads_app_customer_satisfaction_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_CUSTOMER_SATISFACTION",
        "alias": "应用用户满意度",
        "partitionFormat": "d",
        "tag": "服务"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用用户自助服务率模型",
        "tableAlias": "ads_app_customer_self_service_rate",
        "layer": "ads",
        "tableName": "<ads_app_customer_self_service_rate_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_CUSTOMER_SELF_SERVICE_RATE",
        "alias": "应用用户自助服务率",
        "partitionFormat": "d",
        "tag": "服务"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "云资源统计模型",
        "tableAlias": "dws_resource_cloud_resource_stats_1d",
        "layer": "dws",
        "tableName": "<dws_resource_cloud_resource_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "CLOUD_RESOURCE_STATS",
        "alias": "云资源统计",
        "partitionFormat": "d",
        "domainId": 6,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "云资源ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "作业统计模型",
        "tableAlias": "dws_business_job_stats_1d",
        "layer": "dws",
        "tableName": "<dws_business_job_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "JOB_STATS",
        "alias": "作业统计",
        "partitionFormat": "d",
        "domainId": 9,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用统计模型",
        "tableAlias": "dws_platform_app_stats_1d",
        "layer": "dws",
        "tableName": "<dws_platform_app_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_STATS",
        "alias": "应用统计",
        "partitionFormat": "d",
        "domainId": 8,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用组件统计模型",
        "tableAlias": "dws_platform_app_component_stats_1d",
        "layer": "dws",
        "tableName": "<dws_platform_app_component_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_COMPONENT_STATS",
        "alias": "应用组件统计",
        "partitionFormat": "d",
        "domainId": 8,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "集群资源模型",
        "tableAlias": "dws_resource_cluster_resource_stats_1d",
        "layer": "dws",
        "tableName": "<dws_resource_cluster_resource_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "CLUSTER_RESOURCE_STATS",
        "alias": "集群资源统计",
        "partitionFormat": "d",
        "domainId": 6,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "集群ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "指标统计模型",
        "tableAlias": "dws_original_metric_stats_1d",
        "layer": "dws",
        "tableName": "<dws_original_metric_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "METRIC_STATS",
        "alias": "指标统计",
        "partitionFormat": "d",
        "domainId": 4,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "指标ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "日志统计模型",
        "tableAlias": "dws_original_log_stats_1d",
        "layer": "dws",
        "tableName": "<dws_original_log_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "LOG_STATS",
        "alias": "日志统计",
        "partitionFormat": "d",
        "domainId": 4,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "集群ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "追踪统计模型",
        "tableAlias": "dws_original_trace_stats_1d",
        "layer": "dws",
        "tableName": "<dws_original_trace_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "TRACE_STATS",
        "alias": "追踪统计",
        "partitionFormat": "d",
        "domainId": 4,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "追踪ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "事件统计模型",
        "tableAlias": "dws_original_event_stats_1d",
        "layer": "dws",
        "tableName": "<dws_original_event_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "EVENT_STATS",
        "alias": "事件统计",
        "partitionFormat": "d",
        "domainId": 4,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "集群ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "调用链统计模型",
        "tableAlias": "dws_derivation_chain_stats_1d",
        "layer": "dws",
        "tableName": "<dws_derivation_chain_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "CHAIN_STATS",
        "alias": "调用链统计",
        "partitionFormat": "d",
        "domainId": 5,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "调用链ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "模式统计模型",
        "tableAlias": "dws_derivation_pattern_stats_1d",
        "layer": "dws",
        "tableName": "<dws_derivation_pattern_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "PATTERN_STATS",
        "alias": "模式统计",
        "partitionFormat": "d",
        "domainId": 5,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "模式ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "特征统计模型",
        "tableAlias": "dws_derivation_feature_stats_1d",
        "layer": "dws",
        "tableName": "<dws_derivation_feature_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "FEATURE_STATS",
        "alias": "特征统计",
        "partitionFormat": "d",
        "domainId": 5,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "风险统计模型",
        "tableAlias": "dws_stability_risk_stats_1d",
        "layer": "dws",
        "tableName": "<dws_stability_risk_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "RISK_STATS",
        "alias": "风险统计模型",
        "partitionFormat": "d",
        "domainId": 1,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentInstanceId",
        "nullable": True,
        "alias": "应用组件实例ID",
        "description": "应用组件实例ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "defCnt",
        "nullable": True,
        "alias": "定义数量",
        "description": "定义数量",
        "dim": "def_cnt",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "instanceCnt",
        "nullable": True,
        "alias": "实例数量",
        "description": "实例数量",
        "dim": "instance_cnt",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "instanceCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增实例数量",
        "description": "每日新增实例数量",
        "dim": "instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": False,
        "alias": "时间戳",
        "description": "时间戳",
        "dim": "timestamp",
        "type": "DATE"
    }]
}, {
    "metaReq": {
        "description": "告警统计模型",
        "tableAlias": "dws_stability_alert_stats_1d",
        "layer": "dws",
        "tableName": "<dws_stability_alert_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "ALERT_STATS",
        "alias": "告警统计模型",
        "partitionFormat": "d",
        "domainId": 1,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentInstanceId",
        "nullable": True,
        "alias": "应用组件实例ID",
        "description": "应用组件实例ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "defCnt",
        "nullable": True,
        "alias": "定义数量",
        "description": "定义数量",
        "dim": "def_cnt",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "instanceCnt",
        "nullable": True,
        "alias": "实例数量",
        "description": "实例数量",
        "dim": "instance_cnt",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "instanceCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增实例数量",
        "description": "每日新增实例数量",
        "dim": "instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": False,
        "alias": "时间戳",
        "description": "timestamp",
        "dim": "timestamp",
        "type": "DATE"
    }]
}, {
    "metaReq": {
        "description": "异常统计模型",
        "tableAlias": "dws_stability_incident_stats_1d",
        "layer": "dws",
        "tableName": "<dws_stability_incident_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "INCIDENT_STATS",
        "alias": "异常统计模型",
        "partitionFormat": "d",
        "domainId": 1,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentInstanceId",
        "nullable": True,
        "alias": "应用组件实例ID",
        "description": "应用组件实例ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "defCnt",
        "nullable": True,
        "alias": "定义数量",
        "description": "定义数量",
        "dim": "def_cnt",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "异常定义ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "instanceCnt",
        "nullable": True,
        "alias": "实例数量",
        "description": "实例数量",
        "dim": "instance_cnt",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "instanceCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增实例数量",
        "description": "每日新增实例数量",
        "dim": "instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": False,
        "alias": "时间戳",
        "description": "timestamp",
        "dim": "timestamp",
        "type": "DATE"
    }]
}, {
    "metaReq": {
        "description": "故障统计模型",
        "tableAlias": "dws_stability_failure_stats_1d",
        "layer": "dws",
        "tableName": "<dws_stability_failure_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "FAILURE_STATS",
        "alias": "故障统计模型",
        "partitionFormat": "d",
        "domainId": 1,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentInstanceId",
        "nullable": True,
        "alias": "应用组件实例ID",
        "description": "应用组件实例ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "defCnt",
        "nullable": True,
        "alias": "定义数量",
        "description": "定义数量",
        "dim": "def_cnt",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "instanceCnt",
        "nullable": True,
        "alias": "实例数量",
        "description": "实例数量",
        "dim": "instance_cnt",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "instanceCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增实例数量",
        "description": "每日新增实例数量",
        "dim": "instance_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": False,
        "alias": "时间戳",
        "description": "timestamp",
        "dim": "timestamp",
        "type": "DATE"
    }]
}, {
    "metaReq": {
        "description": "POD资源使用统计模型",
        "tableAlias": "dws_cost_pod_resource_allocation_stats_1d",
        "layer": "dws",
        "tableName": "<dws_cost_pod_resource_allocation_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "POD_RESOURCE_ALLOCATION_STATS",
        "alias": "POD资源分配量统计",
        "partitionFormat": "d",
        "domainId": 2,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentInstanceId",
        "nullable": True,
        "alias": "应用组件实例ID",
        "description": "应用组件实例ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceName",
        "nullable": True,
        "alias": "应用实例名称",
        "description": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "clusterId",
        "nullable": True,
        "alias": "集群ID",
        "description": "集群ID",
        "dim": "cluster_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "cpuEfficiency",
        "nullable": True,
        "alias": "CPU水位",
        "description": "CPU水位",
        "dim": "cpu_efficiency",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "POD ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "namespace",
        "nullable": True,
        "alias": "命名空间",
        "description": "命名空间",
        "dim": "namespace",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "podCpuCoreAllocation",
        "nullable": True,
        "alias": "cpu分配core数",
        "description": "cpu分配core数",
        "dim": "pod_cpu_core_allocation",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "podCpuCoreUsageAvg",
        "nullable": True,
        "alias": "cpu平均core数",
        "description": "cpu平均core数",
        "dim": "pod_cpu_core_usage_avg",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "podName",
        "nullable": True,
        "alias": "POD名称",
        "description": "POD名称",
        "dim": "pod_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "podPVCGbAllocation",
        "nullable": True,
        "alias": "pvc分配GB",
        "description": "pvc分配GB",
        "dim": "pod_pvc_gb_allocation",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "podRamGbAllocation",
        "nullable": True,
        "alias": "ram分配GB",
        "description": "ram分配GB",
        "dim": "pod_ram_gb_allocation",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "podRamGbUsageAvg",
        "nullable": True,
        "alias": "ram平均使用GB",
        "description": "ram平均使用GB",
        "dim": "pod_ram_gb_usage_avg",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "ramEfficiency",
        "nullable": True,
        "alias": "ram水位",
        "description": "ram水位",
        "dim": "ram_efficiency",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": False,
        "alias": "统计时间",
        "description": "统计时间",
        "dim": "timestamp",
        "type": "DATE"
    }]
}, {
    "metaReq": {
        "description": "节点CPU使用率统计模型",
        "tableAlias": "dws_cost_node_cpu_usage_stats_1d",
        "layer": "dws",
        "tableName": "<dws_cost_node_cpu_usage_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "NODE_CPU_USAGE_STATS",
        "alias": "节点CPU使用率统计",
        "partitionFormat": "d",
        "domainId": 2,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "节点ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "集群CPU使用率统计模型",
        "tableAlias": "dws_cost_cluster_cpu_usage_stats_1d",
        "layer": "dws",
        "tableName": "<dws_cost_cluster_cpu_usage_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "CLUSTER_CPU_USAGE_STATS",
        "alias": "集群CPU使用率统计",
        "partitionFormat": "d",
        "domainId": 2,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "集群ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "巡检模型",
        "tableAlias": "dws_efficiency_inspection_stats_1d",
        "layer": "dws",
        "tableName": "<dws_efficiency_inspection_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "INSPECTION_STATS",
        "alias": "巡检统计",
        "partitionFormat": "d",
        "domainId": 3,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "分析模型",
        "tableAlias": "dws_efficiency_analysis_stats_1d",
        "layer": "dws",
        "tableName": "<dws_efficiency_analysis_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "ANALYSIS_STATS",
        "alias": "分析统计",
        "partitionFormat": "d",
        "domainId": 3,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "诊断模型",
        "tableAlias": "dws_efficiency_diagnosis_stats_1d",
        "layer": "dws",
        "tableName": "<dws_efficiency_diagnosis_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "DIAGNOSIS_STATS",
        "alias": "诊断统计",
        "partitionFormat": "d",
        "domainId": 3,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "变更模型",
        "tableAlias": "dws_efficiency_change_stats_1d",
        "layer": "dws",
        "tableName": "<dws_efficiency_change_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "CHANGE_STATS",
        "alias": "变更统计",
        "partitionFormat": "d",
        "domainId": 3,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "工单模型",
        "tableAlias": "dws_efficiency_ticket_stats_1d",
        "layer": "dws",
        "tableName": "<dws_efficiency_ticket_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "TICKET_STATS",
        "alias": "工单统计",
        "partitionFormat": "d",
        "domainId": 3,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "操作统计模型",
        "tableAlias": "dws_efficiency_operation_stats_1d",
        "layer": "dws",
        "tableName": "<dws_efficiency_operation_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "OPERATION_STATS",
        "alias": "操作统计",
        "partitionFormat": "d",
        "domainId": 3,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "答疑统计模型",
        "tableAlias": "dws_efficiency_qa_stats_1d",
        "layer": "dws",
        "tableName": "<dws_efficiency_qa_stats_1d_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "QA_STATS",
        "alias": "答疑统计",
        "partitionFormat": "d",
        "domainId": 3,
        "statPeriod": "1d"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "事件类型维度模型",
        "tableAlias": "dim_original_event_type",
        "layer": "dim",
        "tableName": "<dim_original_event_type_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "EVENT_TYPE",
        "alias": "事件类型",
        "partitionFormat": "d",
        "domainId": 4
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "事件类型ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "故障等级维度表",
        "tableAlias": "dim_stability_failure_level",
        "layer": "dim",
        "tableName": "<dim_stability_failure_level_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "FAILURE_LEVEL",
        "alias": "故障等级",
        "partitionFormat": "d",
        "domainId": 1
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "故障等级ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "巡检项维度模型",
        "tableAlias": "dim_efficiency_inspection_item",
        "layer": "dim",
        "tableName": "<dim_efficiency_inspection_item_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "INSPECTION_ITEM",
        "alias": "巡检项",
        "partitionFormat": "d",
        "domainId": 3
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "巡检项ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "追踪明细模型",
        "tableAlias": "dwd_original_trace_di",
        "layer": "dwd",
        "tableName": "<dwd_original_trace_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "TRACE",
        "alias": "追踪",
        "partitionFormat": "d",
        "domainId": 4,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "追踪ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用请求成功率明细(SLA)",
        "tableAlias": "dwd_stability_success_rate_sla_di",
        "layer": "dwd",
        "tableName": "<dwd_stability_success_rate_sla_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "SUCCESS_RATE_SLA",
        "alias": "应用请求成功率明细(SLA)",
        "partitionFormat": "d",
        "domainId": 1,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "app_id",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "应用ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "success_rate",
        "nullable": False,
        "alias": "请求成功率",
        "description": "请求成功率",
        "dim": "success_rate",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": False,
        "alias": "时间戳",
        "description": "计量时间戳",
        "dim": "timestamp",
        "type": "DATE"
    }]
}, {
    "metaReq": {
        "description": "应用平均响应时间明细",
        "tableAlias": "dwd_original_app_avg_response_time_di",
        "layer": "dwd",
        "tableName": "<dwd_original_app_avg_response_time_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_AVG_RESPONSE_TIME",
        "alias": "应用平均响应时间明细",
        "partitionFormat": "d",
        "domainId": 4,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "应用ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "指标数据表",
        "tableAlias": "dwd_original_metric_data_di",
        "layer": "dwd",
        "tableName": "<dwd_original_metric_data_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "METRIC_DATA",
        "alias": "指标数据",
        "partitionFormat": "d",
        "domainId": 4,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "labels",
        "nullable": True,
        "alias": "实例标签",
        "description": "指标实例标签",
        "dim": "labels",
        "type": "OBJECT"
    }, {
        "buildIn": True,
        "field": "metric_id",
        "nullable": False,
        "alias": "指标ID",
        "description": "指标ID",
        "dim": "metric_id",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "metric_name",
        "nullable": False,
        "alias": "指标名称",
        "description": "指标名称",
        "dim": "metric_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": True,
        "alias": "数据时间戳",
        "description": "指标数据产出时间",
        "dim": "timestamp",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "type",
        "nullable": True,
        "alias": "指标类型",
        "description": "指标类型",
        "dim": "type",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "uid",
        "nullable": False,
        "alias": "实例唯一身份ID",
        "description": "实例唯一身份ID",
        "dim": "uid",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "value",
        "nullable": False,
        "alias": "指标值",
        "description": "指标值",
        "dim": "value",
        "type": "FLOAT"
    }]
}, {
    "metaReq": {
        "description": "POD资源分配模型",
        "tableAlias": "dwd_cost_pod_resource_allocation_di",
        "layer": "dwd",
        "tableName": "<dwd_cost_pod_resource_allocation_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "POD_RESOURCE_ALLOCATION",
        "alias": "POD资源分配明细",
        "partitionFormat": "d",
        "domainId": 2,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentInstanceId",
        "nullable": True,
        "alias": "应用组件实例ID",
        "description": "应用组件实例ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceName",
        "nullable": True,
        "alias": "应用实例名称",
        "description": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "clusterId",
        "nullable": True,
        "alias": "集群ID",
        "description": "集群ID",
        "dim": "cluster_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "POD名称",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "namespace",
        "nullable": True,
        "alias": "命名空间",
        "description": "命名空间",
        "dim": "namespace",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "podCpuCoreHoursAllocation",
        "nullable": True,
        "alias": "cpu小时分配core数",
        "description": "cpu小时分配core数",
        "dim": "pod_cpu_core_hours_allocation",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "podCpuCoreHoursUsageAvg",
        "nullable": True,
        "alias": "cpu小时平均使用core数",
        "description": "cpu小时平均使用core数",
        "dim": "pod_cpu_core_hours_usage_avg",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "podName",
        "nullable": False,
        "alias": "POD名称",
        "description": "pod名称",
        "dim": "pod_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "podPVCGbHoursAllocation",
        "nullable": True,
        "alias": "pvc小时分配GB",
        "description": "pvc小时分配GB",
        "dim": "pod_pvc_gb_hours_allocation",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "podRamGbHoursAllocation",
        "nullable": True,
        "alias": "ram小时分配GB",
        "description": "ram小时分配GB",
        "dim": "pod_ram_gb_hours_allocation",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "podRamGbHoursUsageAvg",
        "nullable": True,
        "alias": "ram小时平均使用量GB",
        "description": "ram小时平均使用量GB",
        "dim": "pod_ram_gb_hours_usage_avg",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": True,
        "alias": "计算时间戳",
        "description": "计算时间戳",
        "dim": "timestamp",
        "type": "DATE"
    }]
}, {
    "metaReq": {
        "description": "资源计价维度表",
        "tableAlias": "dim_cost_resource_price",
        "layer": "dim",
        "tableName": "<dim_cost_resource_price_{now/y{yyyy}}>",
        "buildIn": True,
        "lifecycle": 365,
        "name": "RESOURCE_PRICE",
        "alias": "资源计价维度表",
        "partitionFormat": "y",
        "domainId": 2
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "clusterId",
        "nullable": True,
        "alias": "集群ID",
        "description": "集群ID",
        "dim": "cluster_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "currency",
        "nullable": False,
        "alias": "计价货币",
        "description": "计价货币",
        "dim": "currency",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键",
        "description": "集群ID",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "monthlyCpuPrice",
        "nullable": False,
        "alias": "单核CPU每月计价",
        "description": "单核CPU每月计价",
        "dim": "monthly_cpu_price",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "monthlyRamPrice",
        "nullable": False,
        "alias": "RAM每月计价(GB)",
        "description": "RAM每月计价(GB)",
        "dim": "monthly_ram_price",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "monthlyStoragePrice",
        "nullable": False,
        "alias": "存储每月计价(GB)",
        "description": "存储每月计价(GB)",
        "dim": "monthly_storage_price",
        "type": "DOUBLE"
    }]
}, {
    "metaReq": {
        "description": "应用成本模型",
        "tableAlias": "ads_app_cost",
        "layer": "ads",
        "tableName": "<ads_app_cost_{now/d}>",
        "buildIn": True,
        "lifecycle": 180,
        "name": "APP_COST",
        "alias": "应用成本",
        "partitionFormat": "d",
        "tag": "运营"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appId",
        "nullable": True,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": True,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "cost",
        "nullable": True,
        "alias": "总成本",
        "description": "总成本",
        "dim": "cost",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "cpuCoreAllocation",
        "nullable": True,
        "alias": "cpu分配core数",
        "description": "cpu分配core数",
        "dim": "cpu_core_allocation",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "cpuCoreUsageAvg",
        "nullable": True,
        "alias": "cpu平均core数",
        "description": "cpu平均core数",
        "dim": "cpu_core_usage_avg",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "cpuCost",
        "nullable": True,
        "alias": "cpu成本",
        "description": "cpu成本",
        "dim": "cpu_cost",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "cpuEfficiency",
        "nullable": True,
        "alias": "CPU水位",
        "description": "CPU水位",
        "dim": "cpu_efficiency",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "currency",
        "nullable": False,
        "alias": "货币单位",
        "description": "货币单位",
        "dim": "currency",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "podCnt",
        "nullable": True,
        "alias": "pod数量",
        "description": "pod数量",
        "dim": "pod_cnt",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "pvcCost",
        "nullable": True,
        "alias": "pvc成本",
        "description": "pvc成本",
        "dim": "pvc_cost",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "pvcGbAllocation",
        "nullable": True,
        "alias": "pvc分配GB",
        "description": "pvc分配GB",
        "dim": "pvc_gb_allocation",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "ramCost",
        "nullable": True,
        "alias": "ram成本",
        "description": "ram成本",
        "dim": "ram_cost",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "ramEfficiency",
        "nullable": True,
        "alias": "ram水位",
        "description": "ram水位",
        "dim": "ram_efficiency",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "ramGbAllocation",
        "nullable": True,
        "alias": "ram分配GB",
        "description": "ram分配GB",
        "dim": "ram_gb_allocation",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "ramGbUsageAvg",
        "nullable": True,
        "alias": "ram平均使用GB",
        "description": "ram平均使用GB",
        "dim": "ram_gb_usage_avg",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": False,
        "alias": "统计时间",
        "description": "统计时间",
        "dim": "timestamp",
        "type": "DATE"
    }]
}, {
    "metaReq": {
        "description": "构建交付",
        "tableAlias": "dwd_efficiency_delivery_di",
        "layer": "dwd",
        "tableName": "<dwd_efficiency_delivery_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "DELIVERY",
        "alias": "构建交付",
        "partitionFormat": "d",
        "domainId": 3,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "endTime",
        "nullable": True,
        "alias": "构建结束时间",
        "description": "构建结束时间",
        "dim": "end_time",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "构建任务ID",
        "description": "主键appPackageTaskId",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "startTime",
        "nullable": True,
        "alias": "构建开始时间",
        "description": "构建开始时间",
        "dim": "start_time",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "status",
        "nullable": True,
        "alias": "构建状态",
        "description": "构建状态",
        "dim": "status",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "teamId",
        "nullable": True,
        "alias": "团队ID",
        "description": "团队ID",
        "dim": "team_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "version",
        "nullable": True,
        "alias": "构建版本",
        "description": "构建版本",
        "dim": "version",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "部署",
        "tableAlias": "dwd_efficiency_deployment_di",
        "layer": "dwd",
        "tableName": "<dwd_efficiency_deployment_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "DEPLOYMENT",
        "alias": "部署",
        "partitionFormat": "d",
        "domainId": 3,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceName",
        "nullable": False,
        "alias": "应用实例名称",
        "description": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appName",
        "nullable": False,
        "alias": "应用名称",
        "description": "应用名称",
        "dim": "app_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "clusterId",
        "nullable": True,
        "alias": "集群ID",
        "description": "集群ID",
        "dim": "cluster_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "endTime",
        "nullable": True,
        "alias": "部署结束时间",
        "description": "部署结束时间",
        "dim": "end_time",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "namespace",
        "nullable": True,
        "alias": "命名空间",
        "description": "命名空间",
        "dim": "namespace",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "startTime",
        "nullable": True,
        "alias": "部署开始时间",
        "description": "部署开始时间",
        "dim": "start_time",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "status",
        "nullable": True,
        "alias": "部署状态",
        "description": "部署状态",
        "dim": "status",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "teamId",
        "nullable": True,
        "alias": "团队ID",
        "description": "团队ID",
        "dim": "team_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "version",
        "nullable": True,
        "alias": "部署版本",
        "description": "版本",
        "dim": "version",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用交付部署质量",
        "tableAlias": "ads_app_delivery_deployment_quality",
        "layer": "ads",
        "tableName": "<ads_app_delivery_deployment_quality_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_DELIVERY_DEPLOYMENT_QUALITY",
        "alias": "应用交付部署质量",
        "partitionFormat": "d",
        "tag": "交付"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appId",
        "nullable": True,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": True,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceName",
        "nullable": True,
        "alias": "应用实例名称",
        "description": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "deliveryCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增构建次数",
        "description": "每日新增构建次数",
        "dim": "delivery_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "deliverySuccessCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增成功构建次数",
        "description": "每日新增成功构建次数",
        "dim": "delivery_success_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "deliverySuccessRateDaily",
        "nullable": True,
        "alias": "每日构建成功率",
        "description": "每日构建成功率",
        "dim": "delivery_success_rate_daily",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "deploymentCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增部署次数",
        "description": "每日新增部署次数",
        "dim": "deployment_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "deploymentSuccessCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增成功部署次数",
        "description": "每日新增成功部署次数",
        "dim": "deployment_success_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "deploymentSuccessRateDaily",
        "nullable": True,
        "alias": "每日部署成功率",
        "description": "每日部署成功率",
        "dim": "deployment_success_rate_daily",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "teamId",
        "nullable": True,
        "alias": "团队ID",
        "description": "团队ID",
        "dim": "team_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": True,
        "alias": "统计时间",
        "description": "统计时间",
        "dim": "timestamp",
        "type": "DATE"
    }]
}, {
    "metaReq": {
        "description": "应用交付部署效率",
        "tableAlias": "ads_app_delivery_deployment_efficiency",
        "layer": "ads",
        "tableName": "<ads_app_delivery_deployment_efficiency_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_DELIVERY_DEPLOYMENT_EFFICIENCY",
        "alias": "应用交付部署效率",
        "partitionFormat": "d",
        "tag": "交付"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": True,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceName",
        "nullable": True,
        "alias": "应用实例名称",
        "description": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "deliveryCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增构建次数",
        "description": "每日新增构建次数",
        "dim": "delivery_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "deploymentCntDailyAdditions",
        "nullable": True,
        "alias": "每日新增部署次数",
        "description": "每日新增部署次数",
        "dim": "deployment_cnt_daily_additions",
        "type": "LONG"
    }, {
        "buildIn": True,
        "field": "hrEffectivenessRatioDaily",
        "nullable": True,
        "alias": "每日人效比",
        "description": "每日人效比",
        "dim": "hr_effectiveness_ratio_daily",
        "type": "DOUBLE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "teamId",
        "nullable": True,
        "alias": "团队ID",
        "description": "团队ID",
        "dim": "team_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "teamMemberCnt",
        "nullable": True,
        "alias": "团队成员数",
        "description": "团队成员数",
        "dim": "team_member_cnt",
        "type": "INTEGER"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": True,
        "alias": "统计时间",
        "description": "统计时间",
        "dim": "timestamp",
        "type": "DATE"
    }]
}, {
    "metaReq": {
        "description": "POD事件明细模型",
        "tableAlias": "dwd_original_pod_event_di",
        "layer": "dwd",
        "tableName": "<dwd_original_pod_event_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "POD_EVENT",
        "alias": "POD事件明细",
        "partitionFormat": "d",
        "domainId": 4,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "gmtOccur",
        "nullable": False,
        "alias": "事件发生时间戳",
        "description": "事件发生时间戳",
        "dim": "gmt_occur",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "事件对象id",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "message",
        "nullable": True,
        "alias": "事件详情",
        "description": "事件详情",
        "dim": "message",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "namespace",
        "nullable": True,
        "alias": "命名空间",
        "description": "命名空间",
        "dim": "namespace",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "podName",
        "nullable": False,
        "alias": "POD名称",
        "description": "POD名称",
        "dim": "pod_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "reason",
        "nullable": True,
        "alias": "事件原因",
        "description": "事件原因",
        "dim": "reason",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": False,
        "alias": "入库时间戳",
        "description": "入库时间戳",
        "dim": "timestamp",
        "type": "DATE"
    }, {
        "buildIn": True,
        "field": "type",
        "nullable": True,
        "alias": "事件类型",
        "description": "事件类型",
        "dim": "type",
        "type": "STRING"
    }]
}, {
    "metaReq": {
        "description": "应用POD状态明细",
        "tableAlias": "dwd_original_app_pod_status_di",
        "layer": "dwd",
        "tableName": "<dwd_original_app_pod_status_di_{now/d}>",
        "buildIn": True,
        "lifecycle": 7,
        "name": "APP_POD_STATUS",
        "alias": "应用POD状态明细",
        "partitionFormat": "d",
        "domainId": 4,
        "dataMode": "di"
    },
    "fieldsReq": [{
        "buildIn": True,
        "field": "appComponentInstanceId",
        "nullable": True,
        "alias": "应用组件实例ID",
        "description": "应用组件实例ID",
        "dim": "app_component_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appComponentName",
        "nullable": True,
        "alias": "应用组件名称",
        "description": "应用组件名称",
        "dim": "app_component_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appId",
        "nullable": False,
        "alias": "应用ID",
        "description": "应用ID",
        "dim": "app_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceId",
        "nullable": False,
        "alias": "应用实例ID",
        "description": "应用实例ID",
        "dim": "app_instance_id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "appInstanceName",
        "nullable": True,
        "alias": "应用实例名称",
        "description": "应用实例名称",
        "dim": "app_instance_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "id",
        "nullable": False,
        "alias": "主键",
        "description": "主键",
        "dim": "id",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "namespace",
        "nullable": False,
        "alias": "命名空间",
        "description": "命名空间",
        "dim": "namespace",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "podName",
        "nullable": False,
        "alias": "POD名称",
        "description": "POD名称",
        "dim": "pod_name",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "podPhase",
        "nullable": False,
        "alias": "阶段",
        "description": "POD阶段",
        "dim": "pod_phase",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "podReady",
        "nullable": False,
        "alias": "POD是否就绪",
        "description": "POD是否就绪",
        "dim": "pod_ready",
        "type": "STRING"
    }, {
        "buildIn": True,
        "field": "podStatus",
        "nullable": False,
        "alias": "POD状态",
        "description": "POD状态",
        "dim": "pod_status",
        "type": "OBJECT"
    }, {
        "buildIn": True,
        "field": "timestamp",
        "nullable": True,
        "alias": "时间戳",
        "description": "时间戳",
        "dim": "timestamp",
        "type": "DATE"
    }]
}]


def add_sw_models():
    for sw_schema in sw_schemas:
        r = requests.post(url, headers=headers, json=sw_schema)
        if r.status_code == 200:
            print(r.json())


def add_default_resource_price():
    default_resource_price = {
        "id": "default",
        "clusterId": "default",
        "monthlyCpuPrice": 109.5,
        "monthlyRamPrice": 36.50,
        "monthlyStoragePrice": 18.25,
        "currency": "CNY"
    }
    now = datetime.datetime.now()
    default_resource_price["ds"] = str(now.year)

    push_model_data_url = host["warehouse"] + "/dw/data/pushModelDataByName?modelName=RESOURCE_PRICE"
    r = requests.post(push_model_data_url, headers=headers, json=default_resource_price)
    if r.status_code == 200:
        print(r.json())
