sleep

Sleep for a period of time specified as a duration string. This processor will interpolate functions within the duration field, you can find a list of functions here.

sleep:
duration: 100us

This processor executes once per message batch. In order to execute once for each message of a batch place it within a for_each processor:

for_each:
- sleep:
duration: ${!metadata:sleep_for}

Fields

duration

string The duration of time to sleep for each execution.