Deletes an alert rule of Prometheus Service.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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:

  • true: The alert rule was deleted.
  • false: The alert rule failed to be deleted.
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
}