Class AlertNotificationService

java.lang.Object
com.nmontytskyi.monitoring.server.alert.AlertNotificationService

@Service public class AlertNotificationService extends Object
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: