This agent drops a message for further processing. Use in conjunction with the ‘when’ configuration to selectively drop messages.
Given the input:
{
"firstName": "value1",
"lastName": "value2"
}
With an agent configuration of:
- name: "Cast to a string"
- name: "Drop user data"
type: "drop"
input: "input-topic" # optional
output: "output-topic" # optional
configuration:
when: "value.firstName == value1"
There would be no output because the message is dropped.
Checkout the full configuration properties in the API Reference page.