mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user