Queries the message consumption backlog of a specified group ID, including the current number of backlogged messages and the consumption delay time.
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 consumer group 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 common parameter. Each request has a unique ID that can be used for troubleshooting and locating issues. |
CE817BFF-B389-43CD-9419-95011AC9**** |
| Data |
object |
The message consumption backlog of the specified consumer. |
|
| ConsumeTps |
number |
The total transactions per second (TPS) of messages received by the consumer instance group under the group ID. |
10 |
| DelayTime |
integer |
The maximum delay time for message consumption under the group ID. The value is the maximum delay time 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 consumer instance group under the group ID. Unit: UNIX timestamp in milliseconds. |
1566231000000 |
| TotalDiff |
integer |
The total number of backlogged messages for all topics to which the group ID subscribes. |
100 |
| Online |
boolean |
Indicates whether a consumer instance is online under the 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 request parameter is set to false, this parameter is empty. |
|
|
object |
|||
| DelayTime |
integer |
The maximum delay time for message consumption in the topic. This is the 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 backlogged 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 name of the topic. |
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.