Three consecutive times means for 6 minutes total so:
stream
|from()
.measurement('m')
|window()
.period(2m)
.every(2m)
|max('value')
|window()
.period(6m)
.every(6m)
|alert()
.crit(lambda: "max" >= threshold)
// mark that all points need to match the criteria
// in order to trigger the alert.
.all()
On Thursday, September 22, 2016 at 2:54:22 AM UTC-6, guotao Yao wrote:
>
>
> I have a scenario like the next:
> Evaluate the max value every 2 minutes, if the max value greater than a
> threshold three consecutive times, alert will be triggered.
>
> How can I write the tick script?
>
> Thanks!
>
>
> 在 2016年9月21日星期三 UTC+8下午10:49:09,[email protected]写道:
>>
>> All data that is within the time now - period will be emitted into the
>> pipeline. This means data can be emitted more than once if the period is
>> longer than every.
>>
>> On Wednesday, September 21, 2016 at 12:08:02 AM UTC-6, guotao Yao wrote:
>>>
>>> Hi all,
>>>
>>> I have some confusions when I use kapacitor window node,
>>>
>>> 1. the every property define how ofen the data is emitted into the
>>> pipeline.
>>> But, I want to know whether all data during the time will be
>>> emitted into the pipeline, or is it just a data will be emitted into
>>> the pipeline.
>>>
>>>
>>> Thanks!
>>>
>>
--
Remember to include the InfluxDB version number with all issue reports
---
You received this message because you are subscribed to the Google Groups
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
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/2b5b389a-6dac-4a56-9cca-7423b24b95c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.