All Products
Search
Document Center

Function Compute:MnsTopicTriggerConfig

最終更新日:Sep 23, 2024
ParameterTypeDescriptionExample
object

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

filterTagstring

The filtering 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: a backoff retry. It retries three times. The interval between consecutive retries is a random value between 10 seconds and 20 seconds.
  • EXPONENTIAL_DECAY_RETRY: an exponential decay retry policy. A total of 176 retries are performed, with the interval between consecutive retries increasing exponentially to 512 seconds. The total retry period is 1 day. The specific intervals are 1, 2, 4, 8, 16, 32, 64, 128, 256, and 512 seconds. The interval of 512 seconds are used for 167 times.

Valid values:

  • EXPONENTIAL_DECAY_RETRY
  • BACKOFF_RETRY
BACKOFF_RETRY