All Products
Search
Document Center

Function Compute (2.0):MnsTopicTriggerConfig

Last Updated:Mar 03, 2024
ParameterTypeDescriptionExample
object

The configurations of the Message Service (MNS) topic trigger.

filterTagstring

The filter tag. Function execution is triggered only when a message that contains the specified filter tag is received.

“serverless”
notifyContentFormatstring

The content format of the trigger event. The following two content formats are supported:

  • JSON
  • STREAM
JSON
notifyStrategystring

The retry policy. The following two retry policies are supported:

  • BACKOFF_RETRY: indicates a backoff retry. A total of three retries are performed and the gap of each retry is a random value between 10 seconds and 20 seconds.
  • EXPONENTIAL_DECAY_RETRY: indicates an exponentially decaying retry. A total of 176 retries are performed, and the gap exponentially increases to 512 seconds. The retries are performed is one day. The interval between two consecutive retries exponentially increases to a maximum of 512 seconds. For example, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 512... 512. A total of 167 512s exist.
BACKOFF_RETRY