Mengkueri tiga metrik performa — jumlah permintaan, jumlah kesalahan, dan waktu respons rata-rata — dari setiap API aplikasi dengan paginasi. Anda dapat menggunakan field Completed dalam informasi yang dikembalikan untuk menentukan apakah paginasi telah berakhir. Jika belum berakhir, tambahkan 1 ke parameter CurrentPage dan lanjutkan kueri.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region. |
cn-hangzhou |
| StartTime |
integer |
No |
Stempel waktu dari waktu mulai. Satuan: milidetik. |
1600063200000 |
| EndTime |
integer |
No |
Stempel waktu dari waktu akhir. Satuan: milidetik. |
1600066800000 |
| CurrentPage |
integer |
No |
Nomor halaman dari hasil kueri. |
1 |
| PageSize |
integer |
No |
Parameter ini tidak lagi didukung. Jumlah item per halaman dari hasil kueri. Nilai default: 10. |
10 |
| IntervalMills |
integer |
No |
Interval waktu dari potongan data. Satuan: milidetik. Nilai minimum: 60000. Nilai maksimum: 2147483647. |
60000 |
| PId |
string |
Yes |
ID aplikasi. Di konsol ARMS, buka Application Monitoring > Application List dan klik nama aplikasi target. URL di bilah alamat browser berisi pid dari aplikasi dengan format pid=xxx. Karena browser mengkodekan URL, Anda perlu sedikit memodifikasi pid. Misalnya, jika pid yang terdapat dalam URL adalah xxx%4074xxx, Anda perlu mengganti %40 dengan @, yaitu: xxx@74xxx. |
a2n80plglh@745eddxxx |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
Kode status.
|
200 |
| Message |
string |
Pesan yang dikembalikan. |
message |
| RequestId |
string |
ID permintaan. |
B6A00968-82A8-4F14-9D1B-B53827DB**** |
| Success |
boolean |
Menunjukkan apakah kueri berhasil.
|
true |
| Data |
object |
Struktur yang dikembalikan. |
|
| PageSize |
integer |
Jumlah item per halaman dari hasil kueri. |
10 |
| Total |
string |
Jumlah total item dalam hasil kueri. Catatan
Nilai pengembalian parameter ini adalah nilai estimasi, yang hanya digunakan untuk menentukan akhir paginasi dan tidak mewakili jumlah total data yang sebenarnya. |
2 |
| Page |
integer |
Nomor halaman dari hasil kueri. |
1 |
| Completed |
boolean |
Menunjukkan apakah kueri paginasi telah berakhir.
|
false |
| Items |
array<object> |
Data tiga metrik emas dari API aplikasi yang dikembalikan. |
|
|
object |
Data tiga metrik emas dari sebuah API. |
[] |
Contoh
Respons sukses
JSONformat
{
"Code": 200,
"Message": "message",
"RequestId": "B6A00968-82A8-4F14-9D1B-B53827DB****",
"Success": true,
"Data": {
"PageSize": 10,
"Total": "2",
"Page": 1,
"Completed": false,
"Items": [
[]
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 452 | OperationTimeOut | The system timed out when processing the current request. The request may involve too many resources and the system cannot complete the processing within the limited time. Please adjust the relevant conditions and try again. | |
| 400 | ParameterIllegal | The specified parameter is invalid. | |
| 400 | ParameterRegionIllegal | The specified region is invalid. | |
| 500 | InternalError | Internal error. Please try again. Contact the DingTalk service account if the issue persists after multiple retries. | |
| 403 | RetcodeDailyCustomLimit | Usage today has exceeded the custom limit. The current operation is prohibited. | |
| 403 | RetcodeDailyFreeLimit | Usage today has exceeded the Essential Edition limit. The current operation is prohibited. | |
| 404 | AppNotExist | The application does not exist. | |
| 404 | RunningTaskNotExist | Application data collection task does not exist or has been stopped. | |
| 429 | OperationIsThrottled | The backend service cannot fully process the current request. The returned result may be incomplete. Adjust the operation conditions and try again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.