Application Performance Management Plus
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Action | String | Yes | MiniProUpdateAlarm | The name of the API action. The current API name is MiniProUpdateAlarm. |
Version | String | Yes | 2024-03-12 | The API version. The current API version is 2024-03-12. |
common | Yes | - | Common parameters. | |
alarm_param_list | Yes | - | Alert task parameter list. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
aid | Long | Yes | 12345 | Application ID. |
os | String | No | minipro | Service type. Supported values: app, webpro, minipro. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
name | String | Yes | test | Alert task name. |
desc | String | Yes | - | Alert description. |
is_close | Integer | No | 0 | Whether to disable alerts.
|
category | String | Yes | pageview | Alert type. Call the GetAlarmMeta API to view available values. |
alarm_level | String | Yes | warning | Alert level.
|
strategy_list | No | - | Alert policy list. | |
strategy_op | String | No | and | Alert multi-policy relationship.
|
interval_seconds | Integer | No | 300 | Alert task execution interval.
|
alarm_period | No | - | Alert effective time. Alerts outside the time range will not trigger notifications. | |
notify_config | No | - | Alert task notification configuration. | |
is_avoid_spike | Boolean | No | false | Alert optimization: Whether to filter spike alerts. |
pct_avoid_spike | No | - | PCT alert parameter. It is required when pct alert silence is enabled. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
measure | No | - | Metric list of the current policy. It includes simple metrics and composite metrics. | |
filter_list | No | - | Alert policy filter criteria. | |
alarm_strategy_type | String | No | threshold | Alert policy type.
|
daily_compare_count | Integer | No | 5 | Year-on-year comparison supports the last x days. For example, 1 indicates yesterday, and 7 indicates the same day last week. |
alarm_threshold | Double | No | 10 | Alert threshold. |
threshold_cmp_op | String | No | gt | Policy operators.
|
alarm_user_threshold | Double | No | 1 | User count threshold. |
alarm_sample_threshold | Double | No | 1 | Sample count threshold. |
alarm_window_size | Long | No | 180 | Time window for alert task query. It represents the last X minutes. The unit is minutes. |
group_bys | No | - | Alert grouping dimension. | |
attribution_dimensions | No | - | Alert attribution dimension. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
start_time | Integer | No | 0 | Alert start time. The value is the start timestamp in seconds relative to 0:00 of the current day. For example, if the start time is 2:00 on the current day, the value is 7200. |
end_time | Integer | No | 86399 | Alert end time. The value is the end timestamp in seconds relative to 0:00 of the current day. For example, if the end time is 23:59:59 on the current day, the value is 86399. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
notify_types | Array of String | No | [ "mail" ] | Notification method for the alert task.
|
notify_lark_webhooks | Array of String | No | [] | List of Feishu notification webhooks. Required when the alert notification method includes Feishu. |
notify_groups | Array of Long | No | [ 291 ] | ID list for alert notification email group. Required when the alert notification method includes email. |
notify_wechat_webhooks | Array of String | No | [] | List of WeCom notification webhooks. Required when the alert notification method includes WeCom. |
notify_dingding_webhooks | Array of String | No | [] | List of DingTalk notification webhooks. Required when the alert notification method includes DingTalk. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
pct | Integer | No | 1 | Alert sub-window value. Available values are 1~9. The alert is triggered only when the alert metric values of X or more sub-windows exceed the configured alert threshold. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
type | String | No | monomial | Metric type.
|
raw_measure_list | No | - | The set of all metrics. | |
formula | String | No | - | Metric arithmetic formula. Optional when the metric type is the composite metric polynomial. |
name | String | No | - | 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 | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
op | String | No | in | Condition operator.
|
filter_name | String | No | browser_brand | Filter criterion key. Call the GetAlarmMetricRelatedMeta API to view available values. |
values | Array of String | No | ["Chrome"] | Filter criterion values. Call the GetAlarmMetricCandidate API to view available values. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
label | String | No | pid | Grouping metric. |
group_by_number_terms | No | pid | Grouping dimension key. Call the GetAlarmMetricRelatedMeta API to view available values. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
label | String | No | pid | Attribution metric. |
group_by_number_terms | No | pid | Attribution dimension key. Call the GetAlarmMetricRelatedMeta API to view available values. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
measure_name | String | No | pv_uv.count | Simple metric key. Call the GetAlarmMeta and GetAlarmEventMetaMetric APIs to view available values. |
filter_list | No | - | The filter condition. Optional when a single simple metric carries criteria and the metric type is composite. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
name | String | No | - | Attribution dimension. |
min | Double | No | - | Minimum value. |
max | Double | No | - | Maximum value. |
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
data | String | - | Response data. |
error_msg | String | - | Error message. |
error_no | Integer | 0 | Error code. 0 indicates success. |