All Products
Search
Document Center

CloudMonitor:DescribeMetricMetaList

Last Updated:Nov 01, 2023

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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

debugging

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
NamespacestringNo

The namespace of the service.

For more information, see Appendix 1: Metrics.

acs_kvstore
LabelsstringNo

The tags for filtering metrics. Specify a JSON string.

Format:[{"name":"tag name","value":"tag value"},{"name":"tag name","value":"tag value"}]. The following tags are available:

  • metricCategory: the category of the metric.
  • alertEnable: specifies whether to report alerts for the metric.
  • alertUnit: the suggested unit of the metric value in alerts.
  • unitFactor: the factor for metric unit conversion.
  • minAlertPeriod: the minimum time interval to report a new alert.
  • productCategory: the category of the service.
[{"name":"productCategory","value":"kvstore_old"}]
MetricNamestringNo

The name of the metric. For more information, see Appendix 1: Metrics.

CPUUtilization
PageNumberintegerNo

The page to return. Default value: 1

1
PageSizeintegerNo

The number of entries to return on each page. Default value: 30.

30

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The response code.

Note The HTTP 200 code indicates that the request was successful.
200
Messagestring

The error message.

The Request is not authorization.
RequestIdstring

The ID of the request.

0CCE0AF0-053C-4B13-A583-DC9A85785D49
TotalCountstring

The total number of returned records.

12
Successboolean

Indicates whether the request was successful. The value true indicates success. The value false indicates failure.

true
Resourcesobject []

The configuration of the metric.

MetricNamestring

The name of the metric.

CPUUtilization
Descriptionstring

The description of the metric.

CPUUtilization
Labelsstring

The tags of the metric, including one or more JSON strings. Format: [{"name":"tag name","value":"tag value"}]. The name can be repeated.

The following tags are available:

  • metricCategory: the category of the metric.
  • alertEnable: specifies whether to report alerts for the metric.
  • alertUnit: the suggested unit of the metric value in alerts.
  • unitFactor: the factor for metric unit conversion.
  • minAlertPeriod: the minimum time interval to report a new alert.
  • productCategory: the category of the service.
[{\"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\"}]
Unitstring

The unit of the metric.

%
Dimensionsstring

The dimensions of the metric. Multiple dimensions are separated with commas (,).

instanceId
Namespacestring

The namespace of the service. The value is usually in the format of acs_Service.

acs_kvstore
Periodsstring

The statistical period of the metric. Multiple statistical periods are separated with commas (,).

60,300
Statisticsstring

The statistical method. Multiple statistic methods are separated with commas (,).

Average,Minimum,Maximum

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
400ParameterInvalidIllegal parameters.-
403AccessForbiddenUser not authorized to operate on the specified resource.-
404ResourceNotFoundThe specified resource is not found.The specified resource is not found.
500InternalErrorThe request processing has failed due to some unknown error.-

For a list of error codes, visit the Service error codes.