From f52432aa4bd4bb110aced4e6e6928a268224c300 Mon Sep 17 00:00:00 2001 From: Jackson Sabey Date: Sat, 31 Aug 2024 15:07:36 -0700 Subject: [PATCH] fix default --- alerting/provider/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alerting/provider/provider.go b/alerting/provider/provider.go index 862ddcc2..230f73cc 100644 --- a/alerting/provider/provider.go +++ b/alerting/provider/provider.go @@ -57,7 +57,7 @@ func ParseWithDefaultAlert(providerDefaultAlert, endpointAlert *alert.Alert) { if endpointAlert.SuccessThreshold == 0 { endpointAlert.SuccessThreshold = providerDefaultAlert.SuccessThreshold } - if endpointAlert.RepeatInterval > 0 { + if endpointAlert.RepeatInterval == 0 { endpointAlert.RepeatInterval = providerDefaultAlert.RepeatInterval } }