Expr Filter
The filter.expr processor evaluates an Expr expression. If the expression evaluates to true then the payload is sent through. This processor will return an error if the expression fails to evaluate.
Schema
- description: Filters payloads based on an Expr expression
- type:
filter.expr - params:
- expression: Expr expression to evaluate, must return a boolean
Example
Section titled “Example”Match a payload great than or equal to 0
- id: filter type: filter.expr params: expression: "Payload >= 0"