Queries the message accumulation for a specified group ID. The results include the number of stacked messages and the consumption latency.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:QueryConsumerAccumulate |
get |
Group
Group
|
None |
|
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
Yes |
The ID of the Group that you want to query. |
GID_test_consumer_id |
| Detail |
boolean |
No |
Specifies whether to query the details of each topic. Valid values:
|
true |
| InstanceId |
string |
No |
The instance ID. |
MQ_INST_111111111111_DOxxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. This is a common parameter. Each request has a unique ID. Use this ID to locate and troubleshoot issues. |
CE817BFF-B389-43CD-9419-95011AC9**** |
| Data |
object |
The message accumulation of the specified consumer. |
|
| ConsumeTps |
number |
The total TPS of message consumption for the group of consumer instances that belong to the specified Group ID. |
10 |
| DelayTime |
integer |
The maximum message consumption latency for the Group ID. The value is the longest consumption latency among all topics to which the Group ID subscribes. Unit: milliseconds. |
10000 |
| LastTimestamp |
integer |
The production time of the most recently consumed message in the group of consumer instances that belong to the specified Group ID. Unit: Unix timestamp in milliseconds. |
1566231000000 |
| TotalDiff |
integer |
The number of stacked messages for all topics to which the Group ID subscribes. |
100 |
| Online |
boolean |
Indicates whether a consumer instance is online under this Group ID. If at least one consumer instance is online, the Group ID is considered online. Valid values:
|
true |
| DetailInTopicList |
object |
||
| DetailInTopicDo |
array<object> |
The details of each topic. If the Detail parameter in the request is set to false, this parameter returns empty. |
|
|
object |
|||
| DelayTime |
integer |
The maximum message consumption latency in this topic. This is the time difference between the ready time of the earliest unconsumed message in the topic and the current time. Unit: milliseconds. |
10000 |
| TotalDiff |
integer |
The number of stacked messages in the topic. |
100 |
| LastTimestamp |
integer |
The production time of the most recently consumed message in the topic. Unit: Unix timestamp in milliseconds. |
1566231000000 |
| Topic |
string |
The topic name. |
test-mq-topic |
Examples
Success response
JSON format
{
"RequestId": "CE817BFF-B389-43CD-9419-95011AC9****",
"Data": {
"ConsumeTps": 10,
"DelayTime": 10000,
"LastTimestamp": 1566231000000,
"TotalDiff": 100,
"Online": true,
"DetailInTopicList": {
"DetailInTopicDo": [
{
"DelayTime": 10000,
"TotalDiff": 100,
"LastTimestamp": 1566231000000,
"Topic": "test-mq-topic"
}
]
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.