Skip to content
Discussion options

You must be logged in to vote

Beyond the examples on the documentation page, there's not much else.

However, apropos to your particular example: the ends_when condition is used to determine if an incoming event is one that should cause the reducer to emit the reduced event before the expiry period. In your example, it looks like you're trying to figure out when the accumulated .count of your reduced events reaches 10, and to flush the reducer state for that grouping, but the ends_when condition only operates on the events coming in.

You could accomplish that style of reduction/flushing with the stateful lua transform, but reduce currently only supports the aforementioned behaviors (terminal event condition, expiry per…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tobz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants