diff --git a/alert/consume.go b/alert/consume.go index f0e15c9d..a2842560 100644 --- a/alert/consume.go +++ b/alert/consume.go @@ -258,6 +258,8 @@ func isNoneffective(event *models.AlertEvent, alertRule *models.AlertRule) bool } } + alertRule.EnableDaysOfWeek = strings.Replace(alertRule.EnableDaysOfWeek, "7", "0", 1) + if !strings.Contains(alertRule.EnableDaysOfWeek, triggerWeek) { logger.Debugf("event:%+v alert rule:%+v triggerWeek Noneffective", event, alertRule) return true