Open extremeunix opened 7 years ago
@evelynleems reported the following:
Current problem: When citoengine receives multiple alerts of the same event within the same second, duplicated event actions are triggered.
citoengine
How to replicate?
Threshold Count
1
Threshold Timer
60
event_publisher.py
Proposed Fix:
def is_action_required(self)
if self.timer > self.event_action.threshold_timer
@evelynleems reported the following:
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.