Disables one-click alert for a 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 DisableActiveMetricRule

The operation that you want to perform. Set the value to DisableActiveMetricRule.

Product String Yes ecs

The service for which you want to disable one-click alert. Valid values:

  • ecs: Elastic Compute Service (ECS)
  • rds: ApsaraDB for RDS
  • slb: Server Load Balancer (SLB)
  • redis_standard: ApsaraDB for Redis of the standard architecture
  • redis_sharding: ApsaraDB for Redis of the cluster architecture
  • redis_splitrw: ApsaraDB for Redis of the read/write splitting architecture
  • mongodb: ApsaraDB for MongoDB of the replica set architecture
  • mongodb_sharding: ApsaraDB for MongoDB of the sharded cluster architecture
  • hbase: ApsaraDB for Hbase
  • elasticsearch: Elasticsearch
  • opensearch: Open Search

Response parameters

Parameter Type Example Description
Code String 200

The HTTP status code.

Note The status code 200 indicates that the call was successful.
Message String success

The returned message.

RequestId String F82E6667-7811-4BA0-842F-5B2DC42BBAAD

The ID of the request.

Success Boolean true

Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DisableActiveMetricRule
&Product=ecs
&<Common request parameters>

Sample success responses

XML format

<DisableActiveMetricRuleResponse>
      <Code>200</Code>
      <Success>true</Success>
      <Message>success</Message>
      <RequestId>55850888-9CCE-4FD5-B949-5F8947D63929</RequestId>
</DisableActiveMetricRuleResponse>

JSON format

{
  "Code": "200",
  "Success": true,
  "Message": "success",
  "RequestId": "55850888-9CCE-4FD5-B949-5F8947D63929"
}

Error codes

For a list of error codes, visit the API Error Center.