-
Notifications
You must be signed in to change notification settings - Fork 994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config default system timezone and fix monitor status auto recover #1187
Conversation
@@ -361,7 +362,7 @@ private void handlerAvailableMetrics(long monitorId, String app, CollectRep.Metr | |||
preAlert.setStatus(CommonConstants.ALERT_STATUS_CODE_NOT_REACH); | |||
} | |||
} | |||
} else if (avaAlertDefine.isRecoverNotice()) { | |||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这边为什么把isRecoverNotice的判断去掉了?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
因为监控的可用性状态是通过发一个恢复告警来后续变更的,如果这里用 isRecoverNotice 来判断不发送恢复告警,监控的状态就不会恢复正常。所以在后面用 isRecoverNotice 对恢复告警进行处理,如果是 isRecoverNotice 为 false那就只使用此恢复告警来变更监控状态而不真正发出去
What's changed?
Checklist