From 7d0373989f9a1b0b62f16e935b9cbe9157545e00 Mon Sep 17 00:00:00 2001 From: mannilakash Date: Tue, 14 Apr 2026 11:58:19 -0400 Subject: [PATCH] fix: down notification not sent --- server/src/service/infrastructure/statusService.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/service/infrastructure/statusService.ts b/server/src/service/infrastructure/statusService.ts index ef725b80a..ca0f2b0b7 100755 --- a/server/src/service/infrastructure/statusService.ts +++ b/server/src/service/infrastructure/statusService.ts @@ -249,6 +249,9 @@ export class StatusService implements IStatusService { }; } + // With a full window, a single raw check must not change monitor.status; only the sliding-window threshold can trigger a transition. + newStatus = monitor.status; + // Check if threshold has been met const failures = monitor.statusWindow.filter((s) => s === false).length; const failureRate = (failures / monitor.statusWindow.length) * 100;