You can call this operation to query the total number of messages corresponding to the current topic and the last topic update time.
This operation is used to determine the topic resource usage. The information returned after you call the operation includes the total number of messages corresponding to the topic on the broker and the time when messages were last written.
|PreventCache||Long||Yes||The parameter used for CSRF verification, which can be set to the current system time. Unit: ms|
|InstanceId||String||No||The ID of the instance.|
|Topic||String||Yes||The name of the topic you want to query.|
|RequestId||String||A common parameter. Each request has a unique ID.|
|HelpUrl||String||A help link.|
|Data||OnsTopicStatusResponse.Data||The structure of topic data that is queried.|
|totalCount||Long||The total number of messages in all partitions under the current topic.|
|lastTimeStamp||Long||The time when the current topic was last updated.|
For more information about sample codes, see API sample code and endpoints.