Modifies process monitoring in an application group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:ModifyGroupMonitoringAgentProcess |
update |
*MonitoringAgentProcess
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
The ID of the process monitoring task in the application group. |
92E3065F-0980-4E31-9AA0-BA6**** |
| GroupId |
string |
Yes |
The ID of the application group. |
6780**** |
| MatchExpressFilterRelation |
string |
No |
This parameter is deprecated and does not need to be specified. |
and |
| AlertConfig |
array<object> |
Yes |
The alert rule configurations. |
|
|
array<object> |
No |
None. |
||
| SilenceTime |
string |
No |
The mute for epoch. Valid values of N: 1 to 200. Unit: seconds. Minimum value: 3600 (1 hour). Default value: 86400 (1 day). Note
When monitoring data continuously exceeds the alert rule threshold, only one alert notification is sent within each mute for epoch. |
86400 |
| ComparisonOperator |
string |
Yes |
The comparison operator for the Critical-level threshold. Valid values of N: 1 to 200. Valid values:
|
GreaterThanOrEqualToThreshold |
| Webhook |
string |
No |
The callback URL to which a POST request is sent when an alert is triggered. Valid values of N: 1 to 200. |
http://www.aliyun.com |
| Times |
string |
Yes |
The number of consecutive occurrences of the alert level. Valid values of N: 1 to 200. Default value: 3. Note
An alert is triggered only when the alert level consecutively occurs the specified number of times and the alert threshold is reached. |
3 |
| EscalationsLevel |
string |
Yes |
The alert level. Valid values of N: 1 to 200. Valid values:
|
warn |
| EffectiveInterval |
string |
No |
The effective period of the alert rule. Valid values of N: 1 to 200. |
00:00-22:59 |
| NoEffectiveInterval |
string |
No |
This parameter is deprecated and does not need to be specified. |
00:00-05:30 |
| Threshold |
string |
Yes |
The alert threshold. Valid values of N: 1 to 200. |
5 |
| Statistics |
string |
No |
The statistical method for alerts. Valid values of N: 1 to 200. Note
Only Average is supported. |
Average |
| TargetList |
array<object> |
No |
None. |
|
|
object |
No |
None. |
||
| Id |
string |
No |
The ID of the alert trigger target. For information about how to obtain the ID of the alert trigger target, see DescribeMetricRuleTargets. |
1 |
| Arn |
string |
No |
The Alibaba Cloud Resource Name (ARN) of the resource. For information about how to obtain the resource ARN, see DescribeMetricRuleTargets. The ARN is in the format of
|
acs:mns:cn-hangzhou:120886317861****:/queues/test/message |
| Level |
string |
No |
The alert level. Valid values:
|
["INFO", "WARN", "CRITICAL"] |
| JsonParams |
string |
No |
The JSON-formatted parameters of the alert callback. |
{"customField1":"value1","customField2":"$.name"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
None. |
||
| Code |
string |
The HTTP status code. Note
200 indicates success. |
200 |
| Message |
string |
The error message. |
The Request is not authorization. |
| RequestId |
string |
The request ID. |
7985D471-3FA8-4EE9-8F4B-45C19DF3D36F |
| Success |
boolean |
Indicates whether the operation was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "The Request is not authorization.",
"RequestId": "7985D471-3FA8-4EE9-8F4B-45C19DF3D36F",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterInvalid | Illegal parameters. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.