Skip to content

Commit

Permalink
Increase offline check duration from 2 to 3 minutes in server monitor…
Browse files Browse the repository at this point in the history
… criteria
  • Loading branch information
simlarsen committed Dec 20, 2024
1 parent 3d321a0 commit 8fc3fe4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class ServerMonitorCriteria {
OneUptimeDate.getCurrentDate(),
);

let offlineIfNotCheckedInMinutes: number = 2;
let offlineIfNotCheckedInMinutes: number = 3;

// check evaluate over time.
if (
Expand All @@ -68,6 +68,7 @@ export default class ServerMonitorCriteria {
input.criteriaFilter.checkOn === CheckOn.IsOnline &&
differenceInMinutes >= offlineIfNotCheckedInMinutes
) {

const currentIsOnline: boolean | Array<boolean> =
(overTimeValue as Array<boolean>) || false; // false because no request receieved in the last 2 minutes

Expand Down

0 comments on commit 8fc3fe4

Please sign in to comment.