Mengkueri daftar item pemantauan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:ListMetricMeta |
list |
*All Resource
|
None | None |
Sintaks permintaan
GET /monitor/metrics/meta HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| pageNumber |
integer |
Yes |
Nomor halaman, menunjukkan halaman hasil yang akan dikembalikan. |
1 |
| pageSize |
integer |
Yes |
Ukuran halaman, menunjukkan jumlah maksimum hasil per halaman. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Result<MyPage |
||
| requestId |
string |
Request ID |
8B459455-4A35-5796-BA9D-98EF1AB9A931 |
| success |
boolean |
Whether the operation was successful |
true |
| data |
object |
Return result |
|
| pageNumber |
integer |
Current page number |
1 |
| pageSize |
integer |
Page size |
10 |
| totalCount |
integer |
Total record count |
1 |
| list |
array<object> |
Paged data |
|
|
object |
List of monitoring items. |
||
| metricName |
string |
Monitoring item name |
SendMessageCountPerInstance |
| description |
string |
Monitoring item description |
Using Serverless Devs to deploy the infrastructure of project:get-userinfo-v1-infrastructure-as-template-project |
| category |
string |
Monitoring item tag |
Bug |
| code |
string |
Error code |
Topic.NotFound |
| message |
string |
Error message |
The topic already exists. |
| httpStatusCode |
integer |
HTTP status code |
200 |
| dynamicCode |
string |
Dynamic error code |
xxx |
| dynamicMessage |
string |
The dynamic error message. |
xxx |
Contoh
Respons sukses
JSONformat
{
"requestId": "8B459455-4A35-5796-BA9D-98EF1AB9A931",
"success": true,
"data": {
"pageNumber": 1,
"pageSize": 10,
"totalCount": 1,
"list": [
{
"metricName": "SendMessageCountPerInstance",
"description": "Using Serverless Devs to deploy the infrastructure of project:get-userinfo-v1-infrastructure-as-template-project",
"category": "Bug"
}
]
},
"code": "Topic.NotFound",
"message": "The topic already exists.",
"httpStatusCode": 200,
"dynamicCode": "xxx",
"dynamicMessage": "xxx"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.