CreateGroupMonitoringAgentProcess
Creates a group process monitoring task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:CreateGroupMonitoringAgentProcess |
create |
*GroupMonitoringAgentProcess
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
Yes |
The application group ID. For information about how to obtain the application group ID, see DescribeMonitorGroups. |
3607**** |
| ProcessName |
string |
Yes |
The process name. |
Process_Java |
| MatchExpressFilterRelation |
string |
No |
The logical relation for matching instances. Valid values:
|
and |
| MatchExpress |
array<object> |
No |
The list of match conditional expressions. Valid values of N: 1 to 3. |
|
|
object |
No |
The list of match conditional expressions. Valid values of N: 1 to 3. |
||
| Value |
string |
No |
The name of the matched instance. Valid values of N: 1 to 3. |
portalHost |
| Name |
string |
No |
The type of the match condition. Valid values of N: 1 to 3. Note
Only Name, which indicates the instance name, is supported. |
name1 |
| Function |
string |
No |
The match condition. Valid values:
Valid values of N: 1 to 3. |
startWith |
| AlertConfig |
array<object> |
Yes |
The list of alert rule configurations. Valid values of N: 1 to 3. |
|
|
array<object> |
No |
The list of alert rule configurations. Valid values of N: 1 to 3. |
||
| SilenceTime |
string |
No |
The mute period. Unit: seconds. Minimum value: 3600, which indicates 1 hour. Default value: 86400, which indicates 1 day. Valid values of N: 1 to 3. Note
If the monitoring data continuously exceeds the alert rule threshold, the system sends only one alert notification within each mute period. |
86400 |
| ComparisonOperator |
string |
Yes |
The comparison operator for the threshold. Valid values:
Valid values of N: 1 to 3. |
GreaterThanOrEqualToThreshold |
| Webhook |
string |
No |
The webhook URL for alert callbacks. Valid values of N: 1 to 3. |
https://www.aliyun.com |
| Times |
string |
Yes |
The number of consecutive times the alert level is triggered. Default value: 3. Valid values of N: 1 to 3. Note
An alert is triggered only when the alert level is reached for the specified number of consecutive times and the alert threshold is met. |
3 |
| EscalationsLevel |
string |
Yes |
The alert level. Valid values:
Valid values of N: 1 to 3. |
warn |
| EffectiveInterval |
string |
No |
The effective period of the alert rule. Valid values of N: 1 to 3. |
07:00-22:59 |
| NoEffectiveInterval |
string |
No |
[Deprecated] This parameter is deprecated and no longer requires attention. |
00:00-05:30 |
| Threshold |
string |
Yes |
The alert threshold. Valid values of N: 1 to 3. Unit: count. |
5 |
| Statistics |
string |
Yes |
The statistical method for alerts. Valid values of N: 1 to 3. Note
Only Average is supported. |
Average |
| TargetList |
array<object> |
No |
The list of alert targets. |
|
|
object |
No |
The list of alert targets. |
||
| Id |
string |
No |
The ID of the alert target. For information about how to obtain the ID of an alert target, see DescribeMetricRuleTargets. |
1 |
| Arn |
string |
No |
The Alibaba Cloud Resource Name (ARN) of the resource. For information about how to obtain the ARN of a resource, see DescribeMetricRuleTargets. The ARN is in the following format:
|
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 for the alert callback. |
{"customField1":"value1","customField2":"$.name"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
None. |
||
| Code |
string |
The HTTP status code. Note
A status code of 200 indicates success. |
200 |
| Message |
string |
The error message. |
The Request is not authorization. |
| RequestId |
string |
The request ID. |
718FEA81-64C3-4F23-8F90-0531F7489FC1 |
| Success |
boolean |
Indicates whether the operation was successful. Valid values:
|
true |
| Resource |
object |
The group process information. |
|
| GroupProcessId |
string |
The group process ID. |
7F2B0024-4F21-48B9-A764-211CEC48**** |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "The Request is not authorization.",
"RequestId": "718FEA81-64C3-4F23-8F90-0531F7489FC1",
"Success": true,
"Resource": {
"GroupProcessId": "7F2B0024-4F21-48B9-A764-211CEC48****"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterInvalid | %s | |
| 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.