Class AlertNotificationService
java.lang.Object
com.nmontytskyi.monitoring.server.alert.AlertNotificationService
Service responsible for dispatching email notifications when alert rules are breached.
Composes and sends an HTML email containing the alert message, the metric value
that triggered the rule, and a timestamp. Email delivery is conditional on the
notification.email.enabled setting managed by
AppSettingsService.
SMTP credentials and host configuration are supplied via Spring Mail properties.
- Author:
- Nazar Montytskyi
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsendAlert(AlertEventEntity event, AlertRuleEntity rule, RegisteredServiceEntity service)
-
Constructor Details
-
AlertNotificationService
public AlertNotificationService()
-
-
Method Details
-
sendAlert
public void sendAlert(AlertEventEntity event, AlertRuleEntity rule, RegisteredServiceEntity service)
-