Files
nezha_domains/model
naiba 3d74cd9431 fix(alert): retain Duration samples for offline rules so they fire
RetentionWindow() trimmed offline-rule samples to 1, but Check's offline
branch reads points[len-Duration:] and needs Duration samples. The window
never filled, boundCheck always returned "passed", and offline alerts never
fired a notification — while other alert types worked. Offline rules now
retain Duration samples (cycle rules still keep 1, matching their last-sample
lookback).

Fixes the prior over-correction in RetentionWindow; corrects the test that
had pinned the buggy offline=1 value, and adds offline + combined-rule
regression tests driving the real trim loop.
2026-06-08 00:57:14 +00:00
..
2024-12-19 23:21:15 +08:00
2024-12-28 23:50:59 +08:00
2024-11-16 20:57:03 +08:00
2025-04-26 18:28:21 +08:00
2024-10-25 09:09:08 +08:00
2024-12-04 20:00:18 +08:00
2025-01-21 22:23:15 +08:00
2024-11-16 20:57:03 +08:00
2024-10-20 00:32:55 +08:00
2025-03-19 22:21:21 +08:00
2024-11-16 20:57:03 +08:00
2024-10-21 23:00:51 +08:00
2026-02-15 13:13:33 +08:00
2024-10-22 22:01:01 +08:00
2024-11-16 20:57:03 +08:00