Queries the details of metrics that are supported in CloudMonitor.
Operation description
This operation is used together with DescribeMetricList and DescribeMetricLast. For more information, see DescribeMetricList and DescribeMetricLast .
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Namespace | string | No | The namespace of the cloud service. For more information about the namespaces of cloud services, 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 metric name. For more information, see Appendix 1: Metrics. | CPUUtilization |
PageNumber | integer | No | The page number. Default value: 1. | 1 |
PageSize | integer | No | The number of entries per 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.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-04-16 | API Description Update. The Error code has changed | View Change Details |