Queries the details of an event-triggered alert rule.
Operation description
This topic provides an example to show how to query the details of an event-triggered alert rule named testRule
.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RuleName | string | Yes | The name of the event-triggered alert rule. For information about how to obtain the name of an event-triggered alert rule, see DescribeEventRuleList . | testRule |
SilenceTime | string | No | The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds. Default value: 86400, which indicates one day. Note
Only one alert notification is sent during each mute period even if the metric value exceeds the alert threshold several times.
| 86400 |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": "200",
"Message": "The alert does not exist.",
"RequestId": "9AA3F210-C03D-4C86-8DB6-21C84FF692A1",
"Success": true,
"Result": {
"EventType": "SYSTEM",
"GroupId": "3607****",
"Name": "test_DefaultEventRule_7378****",
"Description": "Default group event rule.",
"State": "ENABLED",
"EventPattern": {
"Product": "CloudMonitor",
"LevelList": {
"LevelList": [
"[\"CRITICAL\",\"WARN\"] "
]
},
"StatusList": {
"StatusList": [
"Running"
]
},
"NameList": {
"NameList": [
"Agent_Status_Running"
]
},
"EventTypeList": {
"EventTypeList": [
"*"
]
},
"SQLFilter": "ycccluster1 and (i-23ij0o82612 or Executed1) or Asimulated not 222",
"KeywordFilterObj": {
"Keywords": {
"keyword": [
"VMException"
]
},
"Relation": "OR"
}
}
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameterValue | Illegal parameters. | Illegal parameters. |
403 | AccessForbidden | User not authorized to operate on the specified resource. | - |
404 | %s | %s | - |
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 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-08-31 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||||||||
| ||||||||||||||
2023-03-10 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||||||||
|