分布式消息服务KAFKA版-查询Kafka实例Topic详细信息:响应参数

时间:2024-01-24 16:40:31

响应参数

状态码: 200

表2 响应Body参数

参数

参数类型

描述

topic

String

topic名称。

partitions

Array of partitions objects

分区列表。

group_subscribed

Array of strings

订阅该topic的消费组名称列表。

表3 partitions

参数

参数类型

描述

partition

Integer

分区ID。

leader

Integer

leader副本所在节点的id。

leo

Integer

分区leader副本的LEO(Log End Offset)。

hw

Integer

分区高水位(HW,High Watermark)。

lso

Integer

分区leader副本的LSO(Log Start Offset)。

last_update_timestamp

Long

分区上次写入消息的时间。

格式为Unix时间戳。

单位:毫秒。

replicas

Array of replicas objects

副本列表。

表4 replicas

参数

参数类型

描述

broker

Integer

副本所在的节点ID。

leader

Boolean

该副本是否为leader。

in_sync

Boolean

该副本是否在ISR副本中。

size

Integer

该副本当前日志大小。单位:Byte。

lag

Long

该副本当前落后hw的消息数。

support.huaweicloud.com/api-kafka/ShowInstanceTopicDetail.html