調用DescribeMetricMetaList介面查詢CloudMonitor開放的監控項詳情。
介面說明
通常配合查詢監控資料介面 DescribeMetricList 和 DescribeMetricLast 一起使用,詳情請參見 DescribeMetricList 和 DescribeMetricLast 。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| Namespace |
string |
否 |
雲產品的命名空間。 關於雲產品的命名空間,請參見雲產品監控項。 |
acs_kvstore |
| Labels |
string |
否 |
根據標籤過濾資源。是一個 JSON 的字串。 格式:
|
[{"name":"productCategory","value":"kvstore_old"}] |
| MetricName |
string |
否 |
監控項名稱。詳情請參見雲產品監控項。 |
CPUUtilization |
| PageNumber |
integer |
否 |
分頁參數。預設值:1。 |
1 |
| PageSize |
integer |
否 |
每頁最大數量。預設值:30。 |
30 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Code |
string |
狀態代碼。 說明
200 表示成功。 |
200 |
| Message |
string |
錯誤資訊。 |
The Request is not authorization. |
| RequestId |
string |
請求 ID。 |
CDE9EAFF-D54E-4024-BBFC-B0AAC883143B |
| TotalCount |
string |
總記錄條數。 |
10 |
| Success |
boolean |
操作是否成功。取值:
|
true |
| Resources |
object |
||
| Resource |
array<object> |
資源中監控項的配置資訊。 |
|
|
object |
資源中監控項的配置資訊。 |
||
| MetricName |
string |
監控項名稱。 |
ads.diskSize |
| Description |
string |
監控項描述。 |
The rated disk capacity |
| Labels |
string |
監控項的標籤,是一個或多個 JSON 字串。 格式:
|
[{\"name\":\"minAlertPeriod\",\"value\":\"300\"},{\"name\":\"alertDefault\",\"value\":\"\"},{\"name\":\"unitFactor\",\"value\":\"1\"},{\"name\":\"alertUnit\",\"value\":\"Mbytes\"},{\"name\":\"productCategory\",\"value\":\"ads\"},{\"name\":\"is_alarm\",\"value\":\"true\"},{\"name\":\"metricCategory\",\"value\":\"workerId\"}] |
| Unit |
string |
監控項的單位。 |
MB |
| Dimensions |
string |
資源的監控維度。多個監控維度之間用半形逗號(,)分隔。 |
userId,instanceId,tableSchema,workerId |
| Namespace |
string |
雲產品的命名空間。 |
acs_ads |
| Periods |
string |
監控項的所有統計周期。多個統計周期之間用半形逗號(,)分隔。 單位:秒。 |
300 |
| Statistics |
string |
統計方法。多個統計方法之間用半形逗號(,)分隔。 |
Average,Minimum,Maximum |
樣本
正常返回樣本
JSON格式
{
"Code": "200",
"Message": "The Request is not authorization.",
"RequestId": "CDE9EAFF-D54E-4024-BBFC-B0AAC883143B",
"TotalCount": "10",
"Success": true,
"Resources": {
"Resource": [
{
"MetricName": "ads.diskSize",
"Description": "The rated disk capacity",
"Labels": "[{\\\"name\\\":\\\"minAlertPeriod\\\",\\\"value\\\":\\\"300\\\"},{\\\"name\\\":\\\"alertDefault\\\",\\\"value\\\":\\\"\\\"},{\\\"name\\\":\\\"unitFactor\\\",\\\"value\\\":\\\"1\\\"},{\\\"name\\\":\\\"alertUnit\\\",\\\"value\\\":\\\"Mbytes\\\"},{\\\"name\\\":\\\"productCategory\\\",\\\"value\\\":\\\"ads\\\"},{\\\"name\\\":\\\"is_alarm\\\",\\\"value\\\":\\\"true\\\"},{\\\"name\\\":\\\"metricCategory\\\",\\\"value\\\":\\\"workerId\\\"}]",
"Unit": "MB",
"Dimensions": "userId,instanceId,tableSchema,workerId",
"Namespace": "acs_ads",
"Periods": "300",
"Statistics": "Average,Minimum,Maximum"
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | ParameterInvalid | Parameter invalid. | 非法參數 |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. | 未找到指定資源。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。