Memory action

The action is used to flush the result into an in-memory topic so that it can be consumed by the memory source. The topic is like pubsub topic such as mqtt, so that there could be multiple memory sinks which publish to the same topic and multiple memory sources which subscribe to the same topic. The typical usage for memory action is to form rule pipelines.

Property name Optional Description
topic false The in-memory topic, such as analysis/result

Below is a sample memory action configuration:

  1. {
  2. "memory": {
  3. "topic": "devices/result"
  4. }
  5. }

Below is another sample for dynamic topic action:

  1. {
  2. "memory": {
  3. "topic": "{{.topic}}"
  4. }
  5. }