Id | 模板 | 必填字段 | 示例 |
SYSTEM:table:table_count:fixed
| 表行数,固定值 | pass
| {
"templateId": "SYSTEM:table:table_count:fixed",
"pass": "when > 0"
}
|
SYSTEM:table:table_count:fixed:0
| 表行数大于0 | - | {
"templateId": "SYSTEM:table:table_count:fixed:0"
}
|
SYSTEM:table:table_count_delta:fixed:1_bizdate
| 表行数,1天差值 | pass
| {
"templateId": "SYSTEM:table:table_count_delta:fixed:1_bizdate",
"pass": "when < 10"
}
|
SYSTEM:table:table_count_delta:fixed:latest_bizdate
| 表行数,上周期差值 | pass
| {
"templateId": "SYSTEM:table:table_count_delta:fixed:latest_bizdate",
"pass": "when < 10"
}
|
SYSTEM:table:table_count:flux:1_7_1m_bizdate
| 表行数,1,7,30天波动率 | | {
"templateId": "SYSTEM:table:table_count:flux:1_7_1m_bizdate",
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:table:table_count:flux:1_7_1m_1st_bizdate
| 表行数,1,7,30天,本月1号,波动率 | | {
"templateId": "SYSTEM:table:table_count:flux:1_7_1m_1st_bizdate",
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:table:table_count:flux:1_bizdate
| 表行数,1天波动率 | | {
"templateId": "SYSTEM:table:table_count:flux:1_bizdate",
"warn": "when < -1%",
"fail": "when < -5%"
}
|
SYSTEM:table:table_count:flux:1m_bizdate
| 表行数,30天波动率 | | {
"templateId": "SYSTEM:table:table_count:flux:1m_bizdate",
"warn": "when < -1%",
"fail": "when < -5%"
}
|
SYSTEM:table:table_count:flux:7_bizdate
| 表行数,7天波动率 | | {
"templateId": "SYSTEM:table:table_count:flux:7_bizdate",
"warn": "when < -1%",
"fail": "when < -5%"
}
|
SYSTEM:table:table_count:dynamic_threshold
| 表行数,动态阈值 | - | {
"templateId": "SYSTEM:table:table_count:dynamic_threshold"
}
|
SYSTEM:table:table_count:avg:7_bizdate
| 表行数,7天平均值波动率 | | {
"templateId": "SYSTEM:table:table_count:avg:7_bizdate",
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:table:table_count:avg:1m_bizdate
| 表行数,30天平均值波动率 | | {
"templateId": "SYSTEM:table:table_count:avg:1m_bizdate",
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:table:table_count:cycle:latest_bizdate
| 表行数,上周期波动率 | | {
"templateId": "SYSTEM:table:table_count:cycle:latest_bizdate",
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:table:table_size:fixed
| 表大小,固定值 | pass
| {
"templateId": "SYSTEM:table:table_size:fixed",
"pass": "when > 0"
}
|
SYSTEM:table:table_size_delta:fixed:1_bizdate
| 表大小,相比1天前差值(字节) | pass
| {
"templateId": "SYSTEM:table:table_size_delta:fixed:1_bizdate",
"pass": "when > 0"
}
|
SYSTEM:table:table_size_delta:fixed:latest_bizdate
| 表大小,上周期差值 | pass
| {
"templateId": "SYSTEM:table:table_size_delta:fixed:latest_bizdate",
"pass": "when > 0"
}
|
SYSTEM:table:table_size:flux:1_bizdate
| 表大小,1天波动率 | | {
"templateId": "SYSTEM:table:table_size:flux:1_bizdate",
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:table:table_size:flux:1m_bizdate
| 表大小,30天波动率 | | {
"templateId": "SYSTEM:table:table_size:flux:1m_bizdate",
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:table:table_size:flux:7_bizdate
| 表大小,7天波动率 | | {
"templateId": "SYSTEM:table:table_size:flux:7_bizdate",
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:table:table_size:dynamic_threshold
| 表大小,动态阈值 | - | {
"templateId": "SYSTEM:table:table_size:dynamic_threshold"
}
|
SYSTEM:field:null_value:fixed
| 空值个数,固定值 | | {
"templateId": "SYSTEM:field:null_value:fixed",
"fields": [ "id" ],
"pass": "when > 0"
}
|
SYSTEM:field:null_value:fixed:0
| 空值记录数为0 | fields
| {
"templateId": "SYSTEM:field:null_value:fixed:0",
"fields": [ "id" ]
}
|
SYSTEM:field:null_value_percent:fixed
| 空值个数/总行数,固定值 | | {
"templateId": "SYSTEM:field:null_value_percent:fixed",
"fields": [ "id" ],
"pass": "when > 0"
}
|
SYSTEM:field:pattern_match:fixed
| 正则表达式校验 | fields
valid
templateParameters
pass
| {
"templateId": "SYSTEM:field:pattern_match:fixed",
"templateParameters": {
"metric": "invalid_distinct_count"
},
"fields": [ "id" ],
"valid": {
"regex": "[0-9]+"
},
"pass": "when > 0"
}
|
SYSTEM:field:pattern_match_date:fixed
| 日期格式校验 | fields
valid
templateParameters
pass
| {
"templateId": "SYSTEM:field:pattern_match_date:fixed",
"templateParameters": {
"metric": "invalid_count"
},
"fields": [ "id" ],
"valid": {
"format": "date_yyyymmdd"
}
"pass": "when > 0"
}
|
SYSTEM:field:pattern_match_email:fixed
| 电子邮箱格式校验 | fields
templateParameters
pass
| {
"templateId": "SYSTEM:field:pattern_match_email:fixed",
"templateParameters": {
"metric": "invalid_count"
},
"fields": [ "id" ],
"pass": "when > 0"
}
|
SYSTEM:field:pattern_match_idcard:fixed
| 身份证格式校验 | fields
templateParameters
pass
| {
"templateId": "SYSTEM:field:pattern_match_idcard:fixed",
"templateParameters": {
"metric": "invalid_count"
},
"fields": [ "id" ],
"pass": "when > 0"
}
|
SYSTEM:field:pattern_match_mobile_number:fixed
| 手机号码格式校验 | fields
templateParameters
pass
| {
"templateId": "SYSTEM:field:pattern_match_mobile_number:fixed",
"templateParameters": {
"metric": "invalid_count"
},
"fields": [ "id" ],
"pass": "when > 0"
}
|
SYSTEM:field:pattern_match_money:fixed
| 货币格式校验 | fields
valid
templateParameters
pass
| {
"templateId": "SYSTEM:field:pattern_match_money:fixed",
"templateParameters": {
"metric": "invalid_count"
},
"fields": [ "id" ],
"valid": {
"format": "CNY"
},
"pass": "when > 0"
}
|
SYSTEM:field:pattern_match_number:fixed
| 数值格式校验 | fields
templateParameters
pass
| {
"templateId": "SYSTEM:field:pattern_match_number:fixed",
"templateParameters": {
"metric": "invalid_count"
},
"fields": [ "id" ],
"pass": "when > 0"
}
|
SYSTEM:field:pattern_match_phone_number:fixed
| 电话号码格式校验 | fields
templateParameters
pass
| {
"templateId": "SYSTEM:field:pattern_match_phone_number:fixed",
"templateParameters": {
"metric": "invalid_count"
},
"fields": [ "id" ],
"pass": "when > 0"
}
|
SYSTEM:field:duplicated_count:fixed
| 重复值个数,固定值 | | {
"templateId": "SYSTEM:field:duplicated_count:fixed",
"fields": [ "id" ],
"pass": "when > 0"
}
|
SYSTEM:field:duplicated_count:fixed:0
| 字段重复值为0 | fields
| {
"templateId": "SYSTEM:field:duplicated_count:fixed:0",
"fields": [ "id" ]
}
|
SYSTEM:fields:duplicated_count:fixed:0
| 多字段重复值为0 | fields
| {
"templateId": "SYSTEM:fields:duplicated_count:fixed:0",
"fields": [ "id", "name" ]
}
|
SYSTEM:field:duplicated_percent:fixed
| 重复值个数/总行数,固定值 | | {
"templateId": "SYSTEM:field:duplicated_percent:fixed",
"fields": [ "id" ],
"pass": "when > 0"
}
|
SYSTEM:field:count_distinct:fixed
| 唯一值个数,固定值 | | {
"templateId": "SYSTEM:field:count_distinct:fixed",
"fields": [ "id" ],
"pass": "when > 0"
}
|
SYSTEM:field:count_distinct:flux:1_7_1m_bizdate
| 唯一值个数,1、7、30天波动率 | | {
"templateId": "SYSTEM:field:count_distinct:flux:1_7_1m_bizdate",
"fields": [ "id" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:table:distinct_count:dynamic_threshold
| 唯一值个数,动态阈值 | | {
"templateId": "SYSTEM:table:distinct_count:dynamic_threshold",
"fields": [ "id" ]
}
|
SYSTEM:field:count_distinct_percent:fixed
| 唯一值个数/总行数,固定值 | | {
"templateId": "SYSTEM:field:count_distinct_percent:fixed",
"fields": [ "id" ],
"pass": "when > 0"
}
|
SYSTEM:field:min:flux:1_7_1m_bizdate
| 最小值,1、7、30天波动率 | | {
"templateId": "SYSTEM:field:min:flux:1_7_1m_bizdate",
"fields": [ "id" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:field:min:dynamic_threshold
| 最小值,动态阈值 | fields
| {
"templateId": "SYSTEM:field:min:dynamic_threshold",
"fields": [ "id" ]
}
|
SYSTEM:field:min:cycle:1_bizdate
| 最小值,1天波动率 | | {
"templateId": "SYSTEM:field:min:cycle:1_bizdate",
"fields": [ "id" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:field:min:cycle:latest_bizdate
| 最小值,上周期波动率 | | {
"templateId": "SYSTEM:field:min:cycle:latest_bizdate",
"fields": [ "id" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:field:min:flux:1_7_1m_bizdate
| 最大值,1、7、30天波动率 | | {
"templateId": "SYSTEM:field:min:flux:1_7_1m_bizdate",
"fields": [ "id" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:field:max:dynamic_threshold
| 最大值,动态阈值 | fields
| {
"templateId": "SYSTEM:field:max:dynamic_threshold",
"fields": [ "id" ]
}
|
SYSTEM:field:max:cycle:1_bizdate
| 最大值,1天波动率 | | {
"templateId": "SYSTEM:field:max:cycle:1_bizdate",
"fields": [ "id" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:field:max:cycle:latest_bizdate
| 最大值,上周期波动率 | | {
"templateId": "SYSTEM:field:max:cycle:latest_bizdate",
"fields": [ "id" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:field:avg:flux:1_7_1m_bizdate
| 平均值,1、7、30天波动率 | | {
"templateId": "SYSTEM:field:avg:flux:1_7_1m_bizdate",
"fields": [ "id" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:field:avg:dynamic_threshold
| 平均值,动态阈值 | fields
| {
"templateId": "SYSTEM:field:avg:dynamic_threshold",
"fields": [ "id" ]
}
|
SYSTEM:field:avg:cycle:1_bizdate
| 平均值,1天波动率 | | {
"templateId": "SYSTEM:field:avg:cycle:1_bizdate",
"fields": [ "id" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:field:sum:flux:1_7_1m_bizdate
| 汇总值,1、7、30天波动率 | | {
"templateId": "SYSTEM:field:sum:flux:1_7_1m_bizdate",
"fields": [ "id" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:field:sum:dynamic_threshold
| 汇总值,动态阈值 | fields
| {
"templateId": "SYSTEM:field:avg:dynamic_threshold",
"fields": [ "id" ]
}
|
SYSTEM:field:sum:cycle:1_bizdate
| 汇总值,1天波动率 | | {
"templateId": "SYSTEM:field:sum:cycle:1_bizdate",
"fields": [ "id" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:field:sum:cycle:latest_bizdate
| 汇总值,上周期波动率 | | {
"templateId": "SYSTEM:field:sum:cycle:latest_bizdate",
"fields": [ "id" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:field:count_distinct_not_in:fixed
| 枚举值不匹配唯一值个数,固定值 | | {
"templateId": "SYSTEM:field:count_distinct_not_in:fixed",
"fields": [ "gender" ],
"valid": {
"values": [ "male", "female" ]
},
"pass": "when = 0"
}
|
SYSTEM:field:count_not_in:fixed
| 枚举值不匹配行数,固定值 | | {
"templateId": "SYSTEM:field:count_not_in:fixed",
"fields": [ "gender" ],
"valid": {
"values": [ "male", "female" ]
},
"pass": "when = 0"
}
|
SYSTEM:field:count_not_in:fixed:0
| 枚举值不匹配行数为0 | | {
"templateId": "SYSTEM:field:count_not_in:fixed",
"fields": [ "gender" ],
"valid": {
"values": [ "male", "female" ]
}
}
|
SYSTEM:field:field_enum:fixed
| 枚举值,自定义,固定值 | fields
valid
templateParameters
pass
| {
"templateId": "SYSTEM:field:count_not_in:fixed",
"templateParameters": {
"metric": "invalid_count"
},
"fields": [ "gender" ],
"valid": {
"values": [ "male", "female" ]
},
"pass": "when > 0"
}
|
SYSTEM:field:all_discrete_count:fixed
| 离散值(状态值),固定值 | | {
"templateId": "SYSTEM:field:all_discrete_count:fixed",
"fields": [ "gender" ],
"pass": "when > 0"
}
|
SYSTEM:field:discrete_group_count:fixed
| 离散值(分组个数),固定值 | | {
"templateId": "SYSTEM:field:discrete_group_count:fixed",
"fields": [ "gender" ],
"pass": "when > 0"
}
|
SYSTEM:field:discrete_group_count:dynamic_threshold
| 离散值(分组个数),动态阈值 | fields
| {
"templateId": "SYSTEM:field:discrete_group_count:dynamic_threshold",
"fields": [ "gender" ]
}
|
SYSTEM:field:discrete_value_count:dynamic_threshold
| 离散值(状态值),动态阈值 | fields
| {
"templateId": "SYSTEM:field:discrete_value_count:dynamic_threshold",
"fields": [ "gender" ]
}
|
SYSTEM:field:discrete_group_count:cycle:latest_bizdate
| 离散值(分组个数),1天波动率 | | {
"templateId": "SYSTEM:field:discrete_group_count:cycle:latest_bizdate",
"fields": [ "gender" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|
SYSTEM:field:all_discrete_metrics:fluxdiscrete:1_7_1m_bizdate
| 离散值(分组个数及状态值),1、7、30天波动率 | | {
"templateId": "SYSTEM:field:all_discrete_metrics:fluxdiscrete:1_7_1m_bizdate",
"fields": [ "gender" ],
"warn": "when not between -5% and 5%",
"fail": "when not between -10% and 10%"
}
|