Merge pull request #6502 from zhaoxiangchun/automated-cherry-pick-of-#6500-upstream-release-3.2

Automated cherry pick of #6500: 修复当prestate=alerting,newstate=alerting的情况无法触发notify的问题
This commit is contained in:
Zexi Li
2020-05-21 16:38:04 +08:00
committed by GitHub
+4
View File
@@ -57,6 +57,10 @@ func (n *NotifierBase) ShouldNotify(_ context.Context, evalCtx *alerting.EvalCon
return false
}
if newState == monitor.AlertStateAlerting {
return true
}
// Only notify on state change
if prevState == newState && !n.SendReminder {
return false