查询消费者组堆积信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
rocketmq:GetConsumerGroupLag |
get |
*ConsumerGroup
|
无 | 无 |
请求语法
GET /instances/{instanceId}/consumerGroups/{consumerGroupId}/lag HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| instanceId |
string |
是 |
实例 ID。 |
rmq-cn-2r42vrvde0j |
| consumerGroupId |
string |
是 |
消费者分组 ID。 |
CID-TEST |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| topicName |
string |
否 |
消费者分组订阅的主题名称。 |
normal-topic-1 |
| liteTopicName |
string |
否 |
轻量主题名称 |
abc |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Result |
||
| requestId |
string |
请求 ID |
F5764C40-FB8C-53AE-B95D-96AB3D0E9375 |
| success |
boolean |
是否成功 |
true |
| data |
object |
返回结果 |
|
| regionId |
string |
区域 ID |
cn-hangzhou |
| instanceId |
string |
实例 ID |
rmq-cn-7e22ody**** |
| consumerGroupId |
string |
消费组 ID |
CID-TEST |
| totalLag |
object |
整体堆积量 |
|
| readyCount |
integer |
就绪消息量 |
1 |
| inflightCount |
integer |
处理中消息量 |
1 |
| deliveryDuration |
integer |
投递延迟时间,单位:秒 |
12 |
| lastConsumeTimestamp |
integer |
最新消费时间 |
1735629607846 |
| topicLagMap |
object |
各主题堆积量 |
|
|
object |
整体消息量 |
||
| readyCount |
integer |
就绪消息量 |
1 |
| inflightCount |
integer |
处理中消息量 |
1 |
| deliveryDuration |
integer |
投递延迟时间,单位:秒 |
12 |
| lastConsumeTimestamp |
integer |
最新消费时间 |
1735629607846 |
| topicName |
string |
订阅的 topic 名称 |
test1 |
| liteTopicLagMap |
object |
轻量主题的消费堆积 |
|
|
object |
lite 类型 topic 的消费堆积 |
||
| readyCount |
integer |
堆积消息量 |
300 |
| deliveryDuration |
integer |
投递延迟时间,单位:秒 |
30 |
| code |
string |
错误码 |
Topic.NotFound |
| message |
string |
错误信息 |
Parameter instanceId is mandatory for this action . |
| httpStatusCode |
integer |
HTTP 状态码 |
200 |
| dynamicCode |
string |
动态错误码 |
InstanceId |
| dynamicMessage |
string |
动态错误信息 |
instanceId |
示例
正常返回示例
JSON格式
{
"requestId": "F5764C40-FB8C-53AE-B95D-96AB3D0E9375",
"success": true,
"data": {
"regionId": "cn-hangzhou",
"instanceId": "rmq-cn-7e22ody****",
"consumerGroupId": "CID-TEST",
"totalLag": {
"readyCount": 1,
"inflightCount": 1,
"deliveryDuration": 12,
"lastConsumeTimestamp": 1735629607846
},
"topicLagMap": {
"key": {
"readyCount": 1,
"inflightCount": 1,
"deliveryDuration": 12,
"lastConsumeTimestamp": 1735629607846
}
},
"topicName": "test1",
"liteTopicLagMap": {
"key": {
"readyCount": 300,
"deliveryDuration": 30
}
}
},
"code": "Topic.NotFound",
"message": "Parameter instanceId is mandatory for this action .",
"httpStatusCode": 200,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。