Queries a list of custom monitoring alert rules.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Owner | string | No | The ID of the Alibaba Cloud account used by the owner of the rule. | 1933790683**** |
| TaskIds | array | No | The IDs of the scheduling tasks. | |
| long | No | The ID of the scheduling task. | 1234 | |
| Types | array | No | The alert triggering condition. | |
| string | No | The alert type. Valid values:
| Error | |
| Receiver | string | No | The ID of the Alibaba Cloud account used by the alert recipient. | 1933790683**** |
| Name | string | No | The name of the rule. | error_rule |
| PageNumber | integer | Yes | The page number. Pages start from page 1. | 1 |
| PageSize | long | Yes | The number of entries per page. Maximum value: 100. | 10 |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "A6C6B486-E3A2-5D52-9E76-D9380485D946",
"PagingInfo": {
"TotalCount": 5,
"PageNumber": 1,
"PageSize": 10,
"AlertRules": [
{
"Id": 22125,
"Name": "error_test",
"Owner": "1933790683****",
"Enabled": true,
"TriggerCondition": {
"Type": "Error",
"Extension": {
"Error": {
"StreamTaskIds": [
123
],
"AutoRerunAlertEnabled": false
},
"Timeout": {
"TimeoutInMinutes": 10
},
"UnFinished": {
"UnFinishedTime": "12:00"
},
"CycleUnfinished": {
"CycleAndTime": [
{
"CycleId": 1,
"Time": "01:00"
}
]
},
"InstanceErrorCount": {
"Count": 10
},
"InstanceErrorPercentage": {
"Percentage": 10
},
"InstanceTransferFluctuate": {
"Trend": "abs",
"Percentage": 10
}
},
"Target": {
"Type": "Task",
"Ids": [
32567
],
"AllowTasks": [
123123
]
}
}
}
]
}
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2024-12-27 | The response structure of the API has changed | View Change Details |
