check_interpolation

Resolves a string containing function interpolations and then tests the result against a child condition.

# Config fields, showing default values
check_interpolation:
value: ""
condition: {}

For example, you could use this to test against the size of a message batch:

check_interpolation:
value: ${! batch_size() }
condition:
number:
operator: greater_than
arg: 1

Fields

value

The value to check against the child condition. This field supports interpolation functions.

Type: string
Default: ""

# Examples
value: ${! json("doc.title") }
value: ${! meta("kafka_topic") }
value: ${! json("doc.id") }-${! meta("kafka_key") }

condition

A child condition to test the field contents against.

Type: object
Default: {}