调用DescribeMetricMetaList接口查询云监控开放的监控项详情。
接口说明
通常配合查询监控数据接口DescribeMetricList和DescribeMetricLast一起使用,详情请参见DescribeMetricList和DescribeMetricLast。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
Namespace | string | 否 | 指标所属的Namespace,用于区分每个产品配置。 详情请参见云产品监控项。 | acs_kvstore |
Labels | string | 否 | 根据标签过滤。是一个JSON的字符串。 格式:
| [{"name":"productCategory","value":"kvstore_old"}] |
MetricName | string | 否 | 监控项名称。详情请参见云产品监控项。 | CPUUtilization |
PageNumber | integer | 否 | 分页参数。默认值:1。 | 1 |
PageSize | integer | 否 | 每页最大数量。默认值:30。 | 30 |
返回参数
示例
正常返回示例
JSON
格式
{
"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"
}
]
}
}
JSON
格式
{
"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"
}
]
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | ParameterInvalid | Illegal parameters. | - |
403 | AccessForbidden | User not authorized to operate on the specified resource. | - |
404 | ResourceNotFound | The specified resource is not found. | 未找到指定资源。 |
500 | InternalError | The request processing has failed due to some unknown error. | - |
访问错误中心查看更多错误码。