![](https://s3-us-west-2.amazonaws.com/media.forumbee.com/av/canarylabs/r_40@2x.png)
Min Duration in Event with 3 Conditions
Hello everyone,
I have an event that I need to create which must meet three conditions for at least 5 minutes:
- The first is that the data quality of variable A is Good.
- The second is that the value of variable A is less than or equal to 5.
- The third is that the value of variable B is greater than or equal to 100.
I created the three conditions and then, using the "CanaryAnd" function, I evaluated that all three conditions are met for at least 5 minutes (using the "Min Duration" parameter). I thought it would work, but it didn't. The problem is that it detects an event where the value of B reaches 100 for a few seconds, then drops to 80-90, and then about 5 minutes later exceeds 100 for a few seconds again. Do you have any idea what might be happening?
After trying several configurations, I finally changed the third condition to Minimum('Variable B', '5m')>=100. That finally excluded the undesired event.
Maybe there is an issue with my understanding of how events or the Min Duration parameter work.
Thank you very much!