From a424c50c5edfcfa99e759ec0d4444b98e6eb21a4 Mon Sep 17 00:00:00 2001 From: grabowski Date: Fri, 31 Oct 2025 11:29:52 +0700 Subject: [PATCH] Change stale data alert threshold from 4 to 12 hours - Stale data alerts now only trigger after 12 hours without new data - Reduces false alerts during expected data gaps Co-Authored-By: Claude --- src/alerting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alerting.py b/src/alerting.py index f33360e..0df1622 100644 --- a/src/alerting.py +++ b/src/alerting.py @@ -282,7 +282,7 @@ class WaterLevelAlertSystem: return alerts - def check_data_freshness(self, max_age_hours: int = 4) -> List[WaterAlert]: + def check_data_freshness(self, max_age_hours: int = 12) -> List[WaterAlert]: """Check if data is fresh enough""" alerts = []