Edit Index

Last updated: 2019-11-29 19:19:45


1. API Description

This API (ModifyMetric) is used to modify a metric. Only unit or metricCname of the metric can be modified.

Domain name: monitor.api.qcloud.com

2. Input Parameters

The following request parameter list only provides API request parameters. Common request parameters are also needed when the API is called. The Action field for this API is ModifyMetric.

Parameter Name Required Type Description
namespace Yes String Namespace, which can be queried by calling the API Query Namespace (DescribeNamespace)
metricName Yes String Metric name, which can be queried by calling the API Query Metric (DescribeMetric)
metricCname Yes String Metric name
unit No String Display unit of the reported data

3. Output Parameters

Parameter Name Type Description
code Int Error code, 0: Successful; other values: Failed. For more information, please see Error Codes
message String Error message

4. Error Codes

Error Code Error Description Error Message
-503 Incorrect request parameter InvalidParameter
-505 Parameter is missing InvalidParameter.MissingParameter
-507 Limit has been exceeded OperationDenied.ExceedLimit
-509 Incorrect dimension group InvalidParameter.DimensionGroupError
-513 DB operation failed InternalError.DBoperationFail

5. Example


&<Common request parameters>
&metricCname='Machine disk utilization'