Deletes the reported monitoring data of a metric.

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 DeleteCustomMetric

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

GroupId String Yes 12345

The ID of the application group.

MetricName String Yes AdvanceCredit

The name of the metric.

Md5 String No 38796C8CFFEB8F89BB2A626C7BD7****

The MD5 value of the HTTP request body. The MD5 value is a 128-bit hash value used to verify the uniqueness of the reported monitoring data. Set one of the Md5 and UUID parameters.

Note Set the value to the MD5 value returned when you query the reported monitoring data.
UUID String No 5497633c-66c5-4eae-abaa-89db5adb****

The ID of the request for reporting monitoring data. Set one of the Md5 and UUID parameters.

Note Set the value to the ID returned when you query the reported monitoring data. We recommend that you set the Md5 parameter.

Response parameters

Parameter Type Example Description
RequestId String 05B36C2C-5F6E-48D5-8B41-CE36DD7EE8E0

The ID of the request.

Code String 200

The HTTP status code.

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

The returned message.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DeleteCustomMetric
&GroupId=12345
&MetricName=AdvanceCredit
&<Common request parameters>

Sample success responses

XML format

<DeleteCustomMetric>
          <Message>success</Message>
          <RequestId>05B36C2C-5F6E-48D5-8B41-CE36DD7EE8E0</RequestId>
          <Code>200</Code>
</DeleteCustomMetric>

JSON format

{
    "Message": "success",
    "RequestId": "05B36C2C-5F6E-48D5-8B41-CE36DD7EE8E0",
    "Code": "200"
}

Error codes

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