You can call the DisableMetricRules operation to disable alert rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:DisableMetricRules |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RuleId |
array |
Yes |
The IDs of the alert rules. |
detect_87****_HTTP_HttpLatency |
|
string |
No |
The ID of the alert rule. |
uuid_a141b055483428c22bab05443287196afa42cb6146 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The status code. Note
A value of 200 indicates that the request was successful. |
200 |
| Message |
string |
The error message. |
The specified resource is not found. |
| RequestId |
string |
The request ID. |
FF38D33A-67C1-40EB-AB65-FAEE51EDB644 |
| Success |
boolean |
Indicates whether the operation was successful. A value of `true` indicates success and a value of `false` indicates failure. |
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "The specified resource is not found.",
"RequestId": "FF38D33A-67C1-40EB-AB65-FAEE51EDB644",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | %s | %s | |
| 401 | AccessDeniedException | You donot have sufficient access to perform this action. | |
| 500 | %s | %s | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 402 | LimitExceeded | The quota for this customer had been reached. | |
| 403 | %s | %s | |
| 404 | %s | %s | |
| 503 | %s | %s | |
| 429 | Throttli∂ngException | The request was denied due to request throttling. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.