All Products
Search
Document Center

Function Compute (2.0):SourceRocketMQParameters

Last Updated:Jun 02, 2023
ParameterTypeDescriptionExample
object

The custom configurations when you use Message Queue for Apache RocketMQ as the event source.

RegionIdstring

The region in which the Message Queue for Apache RocketMQ instance resides.

cn-hangzhou
InstanceIdstring

The ID of the Message Queue for Apache RocketMQ instance. For more information, see Limits.

MQ_INST_164901546557****_BAAN****
Topicstring

The topic name of the Message Queue for Apache RocketMQ instance. For more information, see Limits.

mytopic
Tagstring

The tag that is used to filter messages.

test
Offsetstring

The consumer offset of messages. Valid values:

  • CONSUME_FROM_LAST_OFFSET: Consumption starts from the latest offset.
  • CONSUME_FROM_FIRST_OFFSET: Consumption starts from the earliest offset.
  • CONSUME_FROM_TIMESTAMP: Consumption starts from the offset at the specified point in time.

Default value: CONSUME_FROM_LAST_OFFSET.

CONSUME_FROM_TIMESTAMP
Timestamplong

The timestamp. This parameter is valid only if you set the Offset parameter to CONSUME_FROM_TIMESTAMP.

1636597951964
GroupIDstring

The group ID of the Message Queue for Apache RocketMQ.

GID_group1