Mengkueri data pemantauan yang dilaporkan.
Deskripsi operasi
You can call the DescribeMetricList operation to query the metrics of cloud services. For more information, see DescribeMetricList.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:DescribeCustomMetricList |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
No |
ID kelompok aplikasi. Untuk informasi tentang cara mengkueri ID kelompok aplikasi, lihat DescribeMonitorGroups. |
7378**** |
| MetricName |
string |
No |
Nama metrik kustom. |
cpu_total |
| Dimension |
string |
No |
Dimensi yang digunakan untuk mengkueri resource. |
{sampleName1=value1&sampleName2=value2} |
| Md5 |
string |
No |
Nilai MD5 badan permintaan HTTP. Nilai MD5 adalah nilai hash 128-bit yang digunakan untuk memverifikasi keunikan data pemantauan yang dilaporkan. |
97c25982d9745a231276bff27469**** |
| PageNumber |
string |
No |
Nomor halaman. Halaman dimulai dari halaman 1. Nilai default: 1. |
1 |
| PageSize |
string |
No |
Jumlah entri per halaman. Halaman dimulai dari halaman 1. Nilai default: 10. |
10 |
Untuk informasi lebih lanjut tentang parameter permintaan umum, lihat Common parameters.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The responses code. Catatan
The status code 200 indicates that the request was successful. |
200 |
| Message |
string |
The returned message. |
success |
| RequestId |
string |
The request ID. |
1AF425E4-1DEA-54F2-910A-8117C9686140 |
| Result |
string |
The reported custom metrics that are found in the query. |
{\"all\":0,\"size\":10,\"param\":{\"metric\":\"{\\\"metricName\\\":\\\"cpu_total\\\",\\\"groupId\\\":7378****,\\\"project\\\":\\\"acs_customMetric_120886317861****\\\",\\\"dimension\\\":\\\"sampleName1=value1&sampleName2=value2\\\",\\\"status\\\":1}\",\"service\":\"metric-center.aliyun-inc.com\"},\"page\":1,\"list\":[]} |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Message": "success",
"RequestId": "1AF425E4-1DEA-54F2-910A-8117C9686140",
"Result": "{\\\"all\\\":0,\\\"size\\\":10,\\\"param\\\":{\\\"metric\\\":\\\"{\\\\\\\"metricName\\\\\\\":\\\\\\\"cpu_total\\\\\\\",\\\\\\\"groupId\\\\\\\":7378****,\\\\\\\"project\\\\\\\":\\\\\\\"acs_customMetric_120886317861****\\\\\\\",\\\\\\\"dimension\\\\\\\":\\\\\\\"sampleName1=value1&sampleName2=value2\\\\\\\",\\\\\\\"status\\\\\\\":1}\\\",\\\"service\\\":\\\"metric-center.aliyun-inc.com\\\"},\\\"page\\\":1,\\\"list\\\":[]}"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | %s | %s | |
| 500 | %s | %s | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | %s | %s | |
| 404 | %s | %s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.