Queries the descriptions of time series metrics that are supported in Cloud Monitor.
Operation Description
This operation is usually used with DescribeMetricList and DescribeMetricLast. For more information, see DescribeMetricList and DescribeMetricLast.
debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Namespace | string | No | The namespace of the service. For more information, see Appendix 1: Metrics. | acs_kvstore |
Labels | string | No | The tags for filtering metrics. Specify a JSON string. Format:
| [{"name":"productCategory","value":"kvstore_old"}] |
MetricName | string | No | The name of the metric. For more information, see Appendix 1: Metrics. | CPUUtilization |
PageNumber | integer | No | The page to return. Default value: 1 | 1 |
PageSize | integer | No | The number of entries to return on each page. Default value: 30. | 30 |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": "200",
"Message": "The Request is not authorization.",
"RequestId": "0CCE0AF0-053C-4B13-A583-DC9A85785D49",
"TotalCount": "12",
"Success": true,
"Resources": {
"Resource": [
{
"MetricName": "CPUUtilization",
"Description": "CPUUtilization",
"Labels": "[{\\\"name\\\":\\\"alertUnit\\\",\\\"value\\\":\\\"Bytes\\\"},{\\\"name\\\":\\\"minAlertPeriod\\\",\\\"value\\\":\\\"60\\\"},{\\\"name\\\":\\\"metricCategory\\\",\\\"value\\\":\\\"instanceId\\\"},{\\\"name\\\":\\\"instanceType\\\",\\\"value\\\":\\\"disaster\\\"},{\\\"name\\\":\\\"is_alarm\\\",\\\"value\\\":\\\"true\\\"},{\\\"name\\\":\\\"productCategory\\\",\\\"value\\\":\\\"kvstore_old\\\"}]",
"Unit": "%",
"Dimensions": "instanceId",
"Namespace": "acs_kvstore",
"Periods": "60,300",
"Statistics": "Average,Minimum,Maximum"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ParameterInvalid | Illegal parameters. | - |
403 | AccessForbidden | User not authorized to operate on the specified resource. | - |
404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
500 | InternalError | The request processing has failed due to some unknown error. | - |
For a list of error codes, visit the Service error codes.