Consulta as métricas suportadas no CloudMonitor.
Descrição da operação
Use esta operação junto com DescribeMetricList e DescribeMetricLast. Para mais informações, consulte DescribeMetricList e DescribeMetricLast.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| Namespace |
string |
Não |
O namespace do serviço de nuvem. Para mais informações sobre os namespaces dos serviços de nuvem, consulte Apêndice 1: Métricas. |
acs_kvstore |
| Labels |
string |
Não |
As tags para filtrar métricas. Especifique uma string JSON. Formato:
|
[{"name":"productCategory","value":"kvstore_old"}] |
| MetricName |
string |
Não |
O nome da métrica. Para mais informações, consulte Apêndice 1: Métricas. |
CPUUtilization |
| PageNumber |
integer |
Não |
O número da página. Valor padrão: 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas por página. Valor padrão: 30. |
30 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| Code |
string |
O código de resposta. Nota
O código de status 200 indica que a solicitação foi bem-sucedida. |
200 |
| Message |
string |
A mensagem retornada. |
The Request is not authorization. |
| RequestId |
string |
O ID da solicitação. |
CDE9EAFF-D54E-4024-BBFC-B0AAC883143B |
| TotalCount |
string |
O número total de entradas retornadas. |
10 |
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. Valores válidos:
|
true |
| Resources |
object |
||
| Resource |
array<object> |
A configuração das métricas nos recursos. |
|
|
object |
|||
| MetricName |
string |
The metric name. |
ads.diskSize |
| Description |
string |
The metric description. |
The rated disk capacity |
| Labels |
string |
The tags of the metric, including one or more JSON strings. Format:
|
[{\"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 |
The unit of the metric. |
MB |
| Dimensions |
string |
The monitoring dimensions of the resource. Multiple monitoring dimensions are separated with commas (,). |
userId,instanceId,tableSchema,workerId |
| Namespace |
string |
The namespace of the cloud service. |
acs_ads |
| Periods |
string |
The statistical periods of the metric. Multiple statistical periods are separated with commas (,). Unit: seconds. |
300 |
| Statistics |
string |
The statistical method. Multiple statistical methods are separated with commas (,). |
Average,Minimum,Maximum |
Exemplos
Resposta de sucesso
JSON formato
{
"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"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 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. | The specified resource is not found. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.