Deletes an alert rule of Prometheus Service.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeletePrometheusAlertRule |
The operation that you want to perform. Set the value to DeletePrometheusAlertRule. |
AlertId | Long | Yes | 3888704 |
The ID of the alert rule. You can call the ListPrometheusAlertRules operation to query the ID of the alert rule. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Success | Boolean | true |
Indicates whether the alert rule was deleted. Valid values:
|
RequestId | String | 9FEA6D00-317F-45E3-9004-7FB8B0B7**** |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeletePrometheusAlertRule
&AlertId=3888704
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeletePrometheusAlertRuleResponse>
<RequestId>9FEA6D00-317F-45E3-9004-7FB8B0B7****</RequestId>
<Success>true</Success>
</DeletePrometheusAlertRuleResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "9FEA6D00-317F-45E3-9004-7FB8B0B7****",
"Success" : true
}