Parameters | Type | Sample value | Description |
measure | - | The metric set of the current policy. It includes simple metrics and composite metrics. | |
filter_list | - | Alert policy filter criteria. | |
alarm_strategy_type | String | threshold | Alert policy type.
|
daily_compare_count | Integer | 5 | Time interval between the previous period and the current period. Required when the alert policy is a ratio-based alert. The unit is minutes. For example, a value of 1440 means compared with 1 day ago. |
alarm_threshold | Double | 10 | Alert threshold. |
threshold_cmp_op | String | gt | Policy operators.
|
alarm_user_threshold | Double | 1 | User count threshold. |
alarm_sample_threshold | Double | 1 | Sample count threshold. |
alarm_window_size | Long | Time window for alert task query. It represents the most recent X minutes. The unit is minutes. | |
group_bys | - | Alert grouping dimension. | |
attribution_dimensions | - | Alert attribution dimension. |
Parameters | Type | Sample value | Description |
notify_types | Array of String | ["mail"] | Notification method for the alert task.
|
notify_lark_webhooks | Array of String | [] | List of Feishu notification webhooks. Required when the alert notification method includes Feishu. |
notify_groups | Array of Long | [ 291 ] | ID List for alert notification email group. Required when the alert notification method includes email. |
notify_wechat_webhooks | Array of String | [] | List of WeCom notification webhooks. Required when the alert notification method includes WeCom. |
notify_dingding_webhooks | Array of String | [] | List of DingTalk notification webhooks. Required when the alert notification method includes DingTalk. |
Parameters | Type | Sample value | Description |
type | String | monomial | Metric type.
|
raw_measure_list | - | Alert metric list. | |
formula | String | - | Metric arithmetic formula. Optional when the metric type is the composite metric polynomial. |
name | String | PV | The metric name. When the metric is a simple metric, it is the metric name. When the metric is a composite metric, it is the custom metric name. |
Parameters | Type | Sample value | Description |
label | String | pid | Grouping metric. |
group_by_number_terms | pid | Grouping dimension key. Call the GetAlarmMetricRelatedMeta API to view the values. |
Parameters | Type | Sample value | Description |
label | String | pid | Attribution metric. |
group_by_number_terms | pid | Attribution dimension key. Call the GetAlarmMetricRelatedMeta API to view the values. |
Parameters | Type | Sample value | Description |
measure_name | String | pv_uv.count | Simple metric key. Call the GetAlarmMeta and GetAlarmEventMetaMetric APIs to view the values. |
filter_list | - | The filter condition. Optional when a single simple metric carries criteria and the metric type is composite. | |
event_name | String | - | Custom event key. Required when the metric is a custom event metric. |