DescribeMetricMetaList
Queries metadata.
Operation description
Queries the details of monitoring metrics metadata in CloudMonitor.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:DescribeMetricMetaList |
none |
*All Resource
|
None | None |
Request syntax
GET /describe-metric-meta-list HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| namespace |
string |
No |
The namespace used to distinguish cloud services. |
acs_ecs_dashboard |
| metaFormat |
string |
No |
The source of metadata. Valid values: CMS for CloudMonitor Basic monitoring metrics, and PROM_BASIC for basic monitoring metrics of Managed Service for Prometheus. Valid values:
|
CMS |
| metricName |
string |
No |
The name of the metric. |
CPUUtilization |
| labels |
array<object> |
No |
Filters resources by label. Existing labels are described as follows:
|
|
|
object |
No |
The label key. |
||
| name |
string |
No |
The name of the label. |
productCategory |
| value |
string |
No |
The value of the label. |
ecs |
| pageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| pageSize |
integer |
No |
The number of entries per page. Default value: 2000. |
2000 |
| keywords |
string |
No |
The keyword. |
Instance theory |
| aliyunLang |
string |
No |
The language. |
zh |
| category |
string |
No |
The category. |
ecs |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC |
| totalCount |
integer |
The total number of entries. |
6370 |
| pageNumber |
integer |
The page number. Default value: 1. |
1 |
| pageSize |
integer |
The number of entries per page. |
2000 |
| resources |
array<object> |
The configuration information of the metrics for the resource. |
|
|
array<object> |
The configuration information of the metrics for the resource. |
||
| namespace |
string |
The namespace. |
acs_ecs_dashboard |
| metricName |
string |
The name of the metric. |
CPUUtilization |
| description |
string |
The description. |
ECS CPU Utilization |
| unit |
string |
The unit. |
% |
| labels |
object |
The CloudMonitor labels. This parameter is returned only when metaFormat is set to CMS. |
{"DefaultTemplate":"false","alertDefault":"80","alertUnit":"%","is_alarm":"true","metricCategory":"instanceId","minAlertPeriod":"60","productCategory":"ecs","unitFactor":"1"} |
|
string |
The content of the CloudMonitor label. |
{ "DefaultTemplate": "false", "alertDefault": "80", "alertUnit": "%", "is_alarm": "true", "metricCategory": "instanceId", "minAlertPeriod": "60", "productCategory": "ecs", "unitFactor": "1" } |
|
| dimensions |
array |
The resource filtering dimensions of CloudMonitor Basic. |
|
|
string |
The resource filtering dimensions of CloudMonitor Basic. |
["userId","instanceId"] |
|
| type |
string |
The type of the metric. |
Gauge |
| dimensionDescription |
array<object> |
The description of the dimension information. |
|
|
object |
The description of the dimension information. |
||
| name |
string |
The name. |
user_id |
| statistics |
string |
The statistical method of the metric. Valid values:
|
Maximum |
| periods |
string |
The period. |
60 |
| metaFormat |
string |
The source of metadata. Valid values: CMS for CloudMonitor Basic monitoring metrics, and PROM_BASIC for basic monitoring metrics of Managed Service for Prometheus. Example value: CMS Valid values: CMS PROM_BASIC |
PROM_BASIC |
Examples
Success response
JSON format
{
"requestId": "264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC",
"totalCount": 6370,
"pageNumber": 1,
"pageSize": 2000,
"resources": [
{
"namespace": "acs_ecs_dashboard",
"metricName": "CPUUtilization",
"description": "ECS CPU Utilization",
"unit": "%",
"labels": {
"key": "{\n \"DefaultTemplate\": \"false\",\n \"alertDefault\": \"80\",\n \"alertUnit\": \"%\",\n \"is_alarm\": \"true\",\n \"metricCategory\": \"instanceId\",\n \"minAlertPeriod\": \"60\",\n \"productCategory\": \"ecs\",\n \"unitFactor\": \"1\"\n}"
},
"dimensions": [
"[\"userId\",\"instanceId\"]"
],
"type": "Gauge",
"dimensionDescription": [
{
"name": "user_id"
}
],
"statistics": "Maximum",
"periods": "60",
"metaFormat": "PROM_BASIC"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.