Open lucasalvarezlacasa opened 5 years ago
Hm, this is a pretty tough problem right now. One issue is that the cardinality rule will only include the event that triggered the alert, ie, the 3rd one. The enhancement therefore only would know which of the was last, and nothing about the ordering of the first two. If that's sufficient, the enhancement would just look at the match and decide based on the rule_name whether to drop it or not.
Hello everybody!. I have the following scenario:
The idea of this code is to trigger combined_alarm when alarm1, alarm2 and alarm3 are fired within an interval of 60 minutes. This works perfectly :). However, I need to enforce certain order of the events. I would like to fire combined_alarm only if alarm1 occurred before alarm2 and this one before alarm3.
How can I do that? I've read something about enhancements but I'm not quite sure how to implement something like this. Any snippet of code would be highly appreciated.
Thank you!.