I want to create a delayed trigger for an average value. Currently I use something like
. What I really want would be something like
so that if the average value stays above some limit for a period of time the trigger fires.
I have the option now of doing a rough check using time shift. So I can check the average value now and 5 minutes ago, comparing them both against the trigger value. This is subject to false positives, but also it increases my rule complexity.
Is there some better way to do this?
Code:
value.min(5m) > 10
Code:
value.avg(1m).min(5m) > 10
I have the option now of doing a rough check using time shift. So I can check the average value now and 5 minutes ago, comparing them both against the trigger value. This is subject to false positives, but also it increases my rule complexity.
Is there some better way to do this?