Skip to content
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

Merged
merged 6 commits into from
Aug 18, 2023

Conversation

tomsun28
Copy link
Contributor

What's changed?

  • config default system timezone
  • bugfix monitor status not auto recovery
  • pass the monitor status auto recover notice in alarm converge

Checklist

  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

@tomsun28 tomsun28 added enhancement New feature or request bugfix labels Aug 17, 2023
@tomsun28 tomsun28 requested a review from Ceilzcx August 17, 2023 12:00
@@ -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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这边为什么把isRecoverNotice的判断去掉了?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为监控的可用性状态是通过发一个恢复告警来后续变更的,如果这里用 isRecoverNotice 来判断不发送恢复告警,监控的状态就不会恢复正常。所以在后面用 isRecoverNotice 对恢复告警进行处理,如果是 isRecoverNotice 为 false那就只使用此恢复告警来变更监控状态而不真正发出去

@tomsun28 tomsun28 merged commit aa7e69d into master Aug 18, 2023
2 checks passed
@tomsun28 tomsun28 deleted the default-timezone branch August 18, 2023 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants