Queries the process monitoring tasks for an application group.
Operation description
You can create a process monitoring task to monitor all or the specified Elastic Compute Service (ECS) instances in an application group and configure alert rules for the process monitoring task.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
GroupId | string | Yes | The ID of the application group. | 12345 |
ProcessName | string | No | The process name. | sshd |
PageNumber | integer | No | The page number. Default value: 1 | 1 |
PageSize | integer | No | The number of entries per page. Default value: 10. | 10 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "7985D471-3FA8-4EE9-8F4B-45C19DF3D36F",
"Success": true,
"Code": "200",
"Message": "The Request is not authorization.",
"PageNumber": "1",
"PageSize": "10",
"Total": "28",
"Processes": {
"Process": [
{
"ProcessName": "sshd",
"MatchExpressFilterRelation": "and",
"GroupId": "12345",
"Id": "3F6150F9-45C7-43F9-9578-A58B2E72****",
"MatchExpress": {
"MatchExpress": [
{
"Value": "portalHost",
"Name": "name",
"Function": "all"
}
]
},
"AlertConfig": {
"AlertConfig": [
{
"ComparisonOperator": "GreaterThanOrEqualToThreshold",
"SilenceTime": "86400",
"Webhook": "http://www.aliyun.com",
"Times": "3",
"EscalationsLevel": "warn",
"NoEffectiveInterval": "00:00-23:59",
"EffectiveInterval": "00:00-23:59",
"Threshold": "5",
"Statistics": "Average",
"TargetList": {
"Target": [
{
"Id": "123",
"Arn": "acs:mns:cn-hangzhou:120886317861****:/queues/test/message",
"Level": "CRITICAL",
"JsonParmas": "{\"customField1\":\"value1\",\"customField2\":\"$.name\"}"
}
]
}
}
]
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ParameterInvalid | Illegal parameters. | - |
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. |
500 | InternalError | The request processing has failed due to some unknown error. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history