Mengkueri metrik yang didukung di CloudMonitor.
Deskripsi operasi
Use this operation together with DescribeMetricList and DescribeMetricLast. For more information, see DescribeMetricList and DescribeMetricLast.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Namespace |
string |
No |
Namespace layanan cloud. Untuk informasi selengkapnya tentang namespace layanan cloud, lihat Lampiran 1: Metrik. |
acs_kvstore |
| Labels |
string |
No |
Tag untuk memfilter metrik. Tentukan string JSON. Format:
|
[{"name":"productCategory","value":"kvstore_old"}] |
| MetricName |
string |
No |
Nama metrik. Untuk informasi selengkapnya, lihat Lampiran 1: Metrik. |
CPUUtilization |
| PageNumber |
integer |
No |
Nomor halaman. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 30. |
30 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. Catatan
The status code 200 indicates that the request was successful. |
200 |
| Message |
string |
The returned message. |
The Request is not authorization. |
| RequestId |
string |
The request ID. |
CDE9EAFF-D54E-4024-BBFC-B0AAC883143B |
| TotalCount |
string |
The total number of entries returned. |
10 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Resources |
object |
||
| Resource |
array<object> |
The configuration of the metrics in the resources. |
|
|
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 |
Contoh
Respons sukses
JSONformat
{
"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"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.