In a config modifier schema, use omit to omit a specific field or value from a processed payload.
Although it’s the first keyword in order of execution, we recommend using it in the context of a conditional if keyword.
This keyword executes at the following nesting level:
- omit
- constant
- references
- use
- get
- properties or if or concat or switch or pipe or merge
- default
- plugin
You could specify that a processed payload should omit an observation if its values match the terms you define.
Example: Observations input from initial payload
json
Example: Observations selector
json
Example: Config modifier with omit keyword
yaml
If the observation values match the values defined in the schema, the then action executes (i.e., the observation is omitted from the processed payload). If the values don’t match, the else action executes (i.e., the payload passes through with the observation).
Example: Observations output
json