Querying the Offset of the Latest Message in a Partition

This API is out-of-date and may not be maintained in the future. Please use the API described in Querying Offset of the Latest Message in a Partition.

URI

GET /v1.0/{project_id}/instances/{instance_id}/manage/topics/{topic}/partitions/{partition}/end-message

The following table describes the parameters.

Table 1 Parameters

Parameter

Type

Mandatory

Description

project_id

String

Yes

Project ID.

instance_id

String

Yes

Instance ID.

topic

String

Yes

Topic name.

partition

Integer

Yes

Partition number. Value range: 0–19.

Request

Request parameters

None.

Example request

None.

Response

Response parameters

Table 2 describes the response parameters.

Table 2 Response parameters

Parameter

Type

Description

topic

String

Topic name.

partition

Integer

Partition number.

message_offset

Long

Offset of the latest message.

timestamp

Long

Timestamp of the latest message.

Example response

{
    "topic": "mytest",
    "partition": 0,
    "message_offset": 9,
    "timestamp": 1568125039164
}