Delete Statistics Type

Last updated: 2018-06-11 18:03:39

1. API Description

This API (DeleteMetricStatisticsType) is used to delete the statistical types under a specified metric.

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. For more information, please see Common Request Parameters page. The Action field for this API is DeleteMetricStatisticsType.

Parameter Name Required Type Description
namespace Yes String Delete the statistical types for the metrics under the namespace. This can be queried by calling the API Query Namespace (DescribeNamespace)
metricName Yes String Delete statistical types for the metric. This can be queried by calling the API Query Metric (DescribeMetric)
dimensionNames.n Yes Array Group of dimension names, which is the same with the group of dimensions with statistical types
statisticsType.m.statistics Yes String Existing statistical information can be queried by calling the API Query Metric (DescribeMetric)
statisticsType.m.period Yes Int Existing statistical information can be queried by calling the API Query Metric (DescribeMetric)

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

Input

 https://monitor.api.qcloud.com/v2/index.php?
 &<Common request parameters>
 &namespace=cvm
 &metricName=diskusage
 &dimensionNames.0=ip
 &dimensionNames.1=diskname
 &statisticsType.0.period=300
 &statisticsType.0.statistics=avg

Output

{
  'code': 0,
  'message': ''
}