On SOW Message Expiration
AMPS provides a module to run an action when a message expires from a topic in the SOW.
The amps-action-on-sow-expire-message
module monitors a topic for expirations. The action runs once for each message that expires in the matching topic. Notice, in particular, that this includes monitoring messages that expire from the queue, which are presented as SOW expirations to this module.
This action requires the following parameters. In addition to that, this module also accepts an optional parameter listed below:
Parameter | Description |
---|---|
| The name of the topic to monitor for messages. This parameter does not support regular expressions. The topic name must be either a SOW topic, a view, a conflated topic or a queue. There is no default for this parameter. |
| The message type of the topic to monitor for messages. There is no default for this parameter. |
| An optional comma-delimited string indicating the expiration reasons to monitor for. For example, setting this to For more information on the allowed values and definitions, see the documentation for |
The module adds the following variables to the AMPS context:
Variable | Description |
---|---|
| The topic of the message that expired. |
| The current data of the message. |
| The length of the current data of the message, in bytes. |
| A comma-delimited string indicating one or more reason(s) the message was expired. This string contains one or more of the following values:
|
| The correlation ID set on the publish command if one was set. |
Last updated