UNtil this issue is 
resolved https://github.com/influxdata/kapacitor/issues/327 you can only 
window based on time instead of count. But if your events arrive a regular 
time intervals it should be possible.

Something like this

    // assuming 3 events per minute
   // Only trigger the aelrt if all points in the window match the criteria
   .crit(lambda: "value" == 1)

On Thursday, October 13, 2016 at 3:01:23 AM UTC-6, prash...@theatrolabs.com 
> I am listening to an event and want to raise a critical alert whenever a 
> value in an event is 0 consecutively for 3 times, how this can be done?
> The value i am looking out can either be 0 or 1.

Remember to include the version number!
You received this message because you are subscribed to the Google Groups 
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to influxdb+unsubscr...@googlegroups.com.
To post to this group, send email to influxdb@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to