Class AlertEvaluationService
java.lang.Object
com.nmontytskyi.monitoring.server.alert.AlertEvaluationService
Core alerting service that evaluates all enabled alert rules against the latest
metric data for a given service.
Called after every metric record is persisted. For each rule the service aggregates the relevant metric over the configured evaluation window (default: 60 minutes) and compares the result against the rule's threshold using the declared comparator. When a rule is breached and the per-rule cooldown has expired:
- An
AlertEventEntityis persisted. - The cooldown timer for that rule is reset via
AlertCooldownManager. - Email notification is dispatched via
AlertNotificationService.
- Author:
- Nazar Montytskyi
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AlertEvaluationService
public AlertEvaluationService()
-
-
Method Details
-
evaluate
-