应用与数据集成平台 ROMA CONNECT-重置消费组消费进度到指定位置:请求参数

时间:2023-11-29 17:31:00

请求参数

表2 请求Body参数

参数

是否必选

参数类型

描述

topic

String

topic名称。

partition

Integer

分区编号,默认值为-1,若传入值为-1,则重置所有分区。

message_offset

Integer

重置消费进度到指定偏移量。

如果传入offset小于当前最小的offset,则重置到最小的offset。

如果大于最大的offset,则重置到最大的offset。

message_offset、timestamp二者必选其一。

timestamp

Integer

重置消费进度到指定时间,格式为unix时间戳,单位为毫秒。

如果传入timestamp早于当前最早的timestamp,则重置到最早的timestamp。

如果晚于最晚的timestamp,则重置到最晚的timestamp。

message_offset、timestamp二者必选其一。

support.huaweicloud.com/api-roma/ResetMessageOffset.html