Fix #117: Implement email alerts

This commit is contained in:
TwiN committed 2021-12-02 21:05:17 -05:00
1 parent 0331c18401
commit f6336eac4e
53 files changed
+3062 -626

No files matched your search

+1
View File
@@ -74,6 +74,7 @@ func execute(endpoint *core.Endpoint, alertingConfig *alerting.Config, maintenan
result.Duration.Round(time.Millisecond),
)
if !maintenanceConfig.IsUnderMaintenance() {
// TODO: Consider moving this after the monitoring lock is unlocked? I mean, how much noise can a single alerting provider cause...
HandleAlerting(endpoint, result, alertingConfig, debug)
} else if debug {
log.Println("[watchdog][execute] Not handling alerting because currently in the maintenance window")