tap
Pass events downstream only when the tap is open. tap() is evaluated at startup and then every interval seconds.
Config
Required:
tap: Function that returns true when the tap is open.
Optional:
interval: Re-evaluation interval in seconds (default: 60)
Example
pipeline:
tap:
config:
tap: !!js/function >-
function() {
const hour = new Date().getHours()
return hour >= 9 && hour <= 17
}
interval: 300