mirror of
https://github.com/TwiN/gatus.git
synced 2026-02-15 01:00:05 +00:00
Close #91: Implement default provider alert
This commit is contained in:
@@ -161,7 +161,7 @@ func (service *Service) GetAlertsTriggered() []Alert {
|
||||
return alerts
|
||||
}
|
||||
for _, alert := range service.Alerts {
|
||||
if alert.Enabled && alert.FailureThreshold == service.NumberOfFailuresInARow {
|
||||
if alert.IsEnabled() && alert.FailureThreshold == service.NumberOfFailuresInARow {
|
||||
alerts = append(alerts, *alert)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user