Mengkueri statistik konsumsi Paket untuk ID kelompok tertentu selama periode waktu tertentu.
Deskripsi operasi
-
A statistical curve of the total number of consumed messages
-
A statistical curve of the Transaction Per Second (TPS) for message consumption
If your application has a small and uneven volume of messages, querying by TPS may not return meaningful data. In this case, you can query the total number of consumed messages.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:QueryTrendGroupOutputTps |
get |
Group
Group
|
None |
|
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
Yes |
ID kelompok yang akan dikueri. |
GID_test |
| Topic |
string |
Yes |
Nama topik yang akan dikueri. |
test |
| BeginTime |
integer |
Yes |
Awal rentang waktu yang akan dikueri. Nilai ini adalah Stempel waktu UNIX dalam milidetik. |
1570852800000 |
| EndTime |
integer |
Yes |
Akhir rentang waktu yang akan dikueri. Nilai ini adalah Stempel waktu UNIX dalam milidetik. |
1570868400000 |
| Type |
integer |
Yes |
Jenis informasi yang akan dikueri. Nilai valid:
|
0 |
| InstanceId |
string |
No |
ID instans tempat kelompok berada. |
MQ_INST_111111111111_DOxxxxxx |
| Period |
integer |
No |
Periode sampling. Unit: menit. Nilai valid: 1, 5, dan 10. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. This is a common parameter. Each request has a unique ID that you can use to troubleshoot issues. |
CE57AEDC-8FD2-43ED-8E3B-1F878077**** |
| Data |
object |
The returned data. |
|
| Records |
object |
||
| StatsDataDo |
array<object> |
The data set returned based on sampling period. |
|
|
object |
|||
| Y |
number |
The Y axis. This parameter indicates the TPS for message consumption or the number of messages that are consumed. |
0 |
| X |
integer |
The X axis. The value of this parameter is a UNIX timestamp in milliseconds. |
1570867800000 |
| XUnit |
string |
The unit of the x-axis. The time is measured in ms. |
ms |
| YUnit |
string |
The unit of the y-axis. The value can be the number of consumed messages (msg) or the TPS for message consumption (msg/min). |
msg |
| Title |
string |
The name of the table. |
TopicXXX@GID_XXXReceive Trend Chart |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CE57AEDC-8FD2-43ED-8E3B-1F878077****",
"Data": {
"Records": {
"StatsDataDo": [
{
"Y": 0,
"X": 1570867800000
}
]
},
"XUnit": "ms",
"YUnit": "msg",
"Title": "TopicXXX@GID_XXXReceive Trend Chart"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.