You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "dylanforest (via GitHub)" <gi...@apache.org> on 2023/09/15 14:39:55 UTC
[GitHub] [skywalking] dylanforest commented on a diff in pull request #11336: Release alarm window when alarm metrics is out of date in case OOM
dylanforest commented on code in PR #11336:
URL: https://github.com/apache/skywalking/pull/11336#discussion_r1327383995
##########
oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/RunningRule.java:
##########
@@ -383,6 +392,14 @@ private boolean isMatch() {
return isMatch == 1;
}
+ public boolean checkOutOfDate(LocalDateTime currentTime) {
+ if (this.lastUpdateTime != null) {
+ int minutes = Minutes.minutesBetween(lastUpdateTime, currentTime).getMinutes();
+ return minutes > this.period * 10;
+ }
+ return false;
+ }
Review Comment:
Indeed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org