Metadata

This router routes the message to a stream given in a specified metadata field. If the field is not set, the message will be passed along.

Parameters

Enable (default: true)

Switches this plugin on or off.

Key (default: Stream)

The metadata field to read from. By default this parameter is set to “Stream”

Parameters (from core.SimpleRouter)

Stream

This value specifies the name of the stream this plugin is supposed to read messages from.

Filters

This value defines an optional list of Filter plugins to connect to this router.

TimeoutMs (default: 0, unit: ms)

This value sets a timeout in milliseconds until a message should handled by the router. You can disable this behavior by setting it to “0”. By default this parameter is set to “0”.

Examples

switchRoute:
  Type: router.Metadata
  Stream: errorlogs
  Key: key