Parameters | Type | Sample value | Description |
measure | - | The metric set for the current policy, including simple and composite metrics. | |
filter_list | - | Filtering conditions of alert policies. | |
alarm_strategy_type | String | threshold | Alert policy type.
|
daily_compare_count | Integer | 5 | Time interval between the previous period and the current period. This parameter is required when the alert policy is difference-based. The unit is minutes. For example, 1440 sets the comparison offset to 1 day ago. |
alarm_threshold | Double | 10 | The alert threshold. |
threshold_cmp_op | String | gt | The operator for the alert threshold, indicating the policy operator.
|
alarm_user_threshold | Double | 1 | User count threshold. |
alarm_sample_threshold | Double | 1 | Sample size threshold. |
alarm_window_size | Long | 180 | Time window for querying alert tasks. It represents the last X minutes. The unit is minutes. |
group_bys | - | Alert grouping dimensions. | |
attribution_dimensions | - | Alert attribution dimension. |
Parameters | Type | Sample value | Description |
notify_types | Array of String | ["mail"] | The alert notification method.
|
notify_lark_webhooks | Array of String | [] | A list of Feishu notification webhooks. This parameter is required when the alert notification methods include Feishu. |
notify_groups | Array of Long | [ 291 ] | A list of IDs of alert notification email groups. This parameter is required when the alert notification methods include email. |
notify_wechat_webhooks | Array of String | [] | A list of WeCom notification webhooks. This parameter is required when the alert notification methods include WeCom. |
notify_dingding_webhooks | Array of String | [] | A list of DingTalk notification webhooks. This parameter is required when the alert notification methods include DingTalk. |
Parameters | Type | Sample value | Description |
type | String | monomial | Metric type.
|
raw_measure_list | - | A list of alert metrics. | |
formula | String | - | The arithmetic formula for the metric. This parameter is optional when the metric type is 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 |
group_by_name | String | pid | Grouping dimension key. Call the GetAlarmMetricRelatedMeta API to view the values. |
label | String | pid | Grouping metric. |
Parameters | Type | Sample value | Description |
group_by_name | String | pid | Attribution dimension key. Call the GetAlarmMetricRelatedMeta API to view available values. |
label | String | pid | Attribution dimension. |
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. This parameter is optional when a single simple metric carries conditions and the metric type is polynomial. | |
event_name | String | - | Custom event key. This parameter is required when the metric is a custom event metric. |