You can call this operation to query message consumption accumulation for a specific group ID, including message accumulation amount and consumption latency.
Consumption accumulation query is used when the consumption progress of a group ID in the production environment needs to be kept track of, to roughly determine message consumption and latency. You can check not only the message accumulation corresponding to all topics subscribed to under the group ID, but also the message accumulation corresponding to each topic.
To view consumption information corresponding to each online consumer instance under the group ID, call OnsConsumerStatus to query the consumption status.
|InstanceId||String||No||The ID of the instance.|
|PreventCache||Long||Yes||The parameter used for CSRF verification, which can be set to the current system time. Unit: ms|
|ConsumerId||String||Yes||The group ID of the consumer you want to query.|
|Detail||Boolean||No||Indicates whether to query details. Valid values:
|RequestId||String||A common parameter. Each request has a unique ID.|
|HelpUrl||String||A help link.|
|OnLine||Boolean||Indicates whether consumer instances are online under the group ID. The group ID is online if one of the consumer instances is online. Valid values:
|TotalDiff||Long||The total message accumulation amount corresponding to all the topics that the group ID subscribed to.|
|ConsumeTps||Float||Total TPS at which messages are received by the consumer instance group under the group ID.|
|LastTimestamp||Long||The production time of the last message consumed in the consumer instance group under the group ID.|
|DelayTime||Long||The maximum message consumption latency in the consumer instance group under the group ID.|
|DetailInTopicList||List(OnsConsumerAccumulateResponse.Data.DetailInTopicDo)||Details about each topic.|
|Topic||String||The name of the topic.|
|TotalDiff||Long||The consumption accumulation amount corresponding to the topic.|
|LastTimestamp||Long||The production time of the last message consumed under the topic.|
|DelayTime||Long||The maximum consumption latency of messages sent under the topic.|
For more information about sample codes, see API sample code and endpoints.