Application Performance Management Plus
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
Action | String | Yes | SetAppAlarmRule | The API name. The current API name is SetAppAlarmRule. |
Version | String | Yes | 2022-10-12 | The API version. The current API version is 2022-10-12. |
id | Long | No | 1 | Alert rule ID. It can be omitted if you are creating a new rule. |
name | String | Yes | task_test | Rule name. |
description | String | No | alarm for xxx | Rule description. |
monitor_type | String | Yes | crash | Monitoring type.
|
alarm_level | String | Yes | warning | Alert level.
|
check_cycle | Long | Yes | 5 | Monitoring period, in minutes. Enter 0 for instant alerts. |
activations | No | - | Multiple time periods. | |
filter | No | - | Alert metric filter criteria. | |
group_bys | No | - | Alert grouping condition. | |
hit_rule | Yes | - | Alert trigger condition. | |
notice_conf | Yes | - | Notification configuration information. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
activation_start | String | No | 08:00 | Start of all-day effective time. 24-hour format, accurate to the minute. For example, 9:00 AM is "09:00". |
activation_end | String | No | 23:00 | End of all-day effective time. 24-hour format, accurate to the minute. For example, 9:00 PM is "21:00". |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
type | String | No | and | Condition type.
|
dimension | String | No | aid | The name of the condition. |
op | String | No | in | The operator.
|
value | String | No | 123456 | The filter value. |
values | Array of String | No | [123456] | The filter value. Multiple filter values are supported. |
sub_conditions | No | - | The sub-condition. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
dimension | String | No | path | Group name. |
Parameters | type | Required | Sample value | Description |
Parameters | type | Required | Sample value | Description |
type | String | Yes | and | Condition type.
|
hit_rule_type | String | Yes | threshold | Rule type.
|
threshold_calculate_type | String | Yes | - | Threshold calculation method. It can be addition, subtraction, or percentage. |
threshold_value | Double | Yes | 10,000 | Alert threshold. |
op | String | Yes | gt | The comparator.
|
indicator | No | - | Threshold type parameter configuration. | |
indicators | No | - | Year-over-year and period-over-period parameter configuration. | |
sub_hit_rules | No | - | Sub-rule. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
type | Array of String | No | mail | Notification type.
|
lark_web_hooks | Array of String | No | - | The configuration for adding the Feishu webhook link. |
dingding_web_hooks | Array of String | No | - | DingTalk webhook. |
wechat_web_hooks | Array of String | No | - | WeChat webhook. |
alarm_receives | No | - | Receiver group. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
name | String | Yes | crash_count | Metric definition name, obtained via the GetAppAlarmMetricsConf API. |
value | Double | No | 10 | The metric value. |
recently | Long | Yes | 180 | Metric query time range, for example, 180min. |
compare_time | Long | Yes | 0 | Comparison time.
|
start_time | Long | No | - | Statistics start time. |
end_time | Long | No | - | Statistics end time. |
Parameters | Type | Required | Sample value | Description |
Parameters | Type | Required | Sample value | Description |
is_group | Boolean | No | true | Whether it is a receiver group. |
user_name | String | No | - | Single user. |
email | String | No | - | Group. |
group_name | String | No | - | Group name. |
group_id | Integer | No | 123 | Receiver group ID. |
Parameters | Type | Sample value | Description |
Parameters | Type | Sample value | Description |
error_msg | String | - | Error message. If the request was successful, this field is empty. |
error_no | Long | 0 | Error code. If the request was successful, its value is 0. |