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

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


On Thursday, October 13, 2016 at 3:01:23 AM UTC-6, prash...@theatrolabs.com 
wrote:
>
> 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 
https://groups.google.com/d/msgid/influxdb/0ee6e4be-f0e8-4b86-b467-b4c0e27a8ac7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to