Coverage increased (+0.1%) to 65.917% when pulling e458ffa15bac50b0c359e6b7c1d62b515f91c73c on evelynleems:bugfix-alerts into 61ad642cbac47c0164cfc85e9a1cb83e35caa8c5 on CitoEngine:develop.
Coverage increased (+0.1%) to 65.917% when pulling da04cd7036999467bd28fcab3ec8f775b98c44de on evelynleems:bugfix-alerts into 61ad642cbac47c0164cfc85e9a1cb83e35caa8c5 on CitoEngine:develop.
Current problem: When
citoengine
receives multiple alerts of the same event within the same second, duplicated event actions are triggered.How to replicate?
Threshold Count
to1
andThreshold Timer
to60
.event_publisher.py
to send multiple alerts tocitoengine
within a second.Proposed Fix:
def is_action_required(self)
:if self.timer > self.event_action.threshold_timer
has to be the first condition.