Memory-Expiry Alert: Cooldown 1h→12h, eigene Kategorie memory_expiry

This commit is contained in:
root 2026-03-16 08:34:19 +07:00
parent 6adf8b5428
commit 3b11674d73

View file

@ -18,6 +18,7 @@ ALERT_COOLDOWN_SECONDS = {
"silence": 3600,
"http": 1800,
"restart": 900,
"memory_expiry": 43200,
"default": 3600,
}
@ -262,6 +263,8 @@ def _alert_category(alert_text: str) -> str:
return "http"
if "Service-Neustart" in alert_text:
return "restart"
if "Memory läuft ab" in alert_text:
return "memory_expiry"
return "default"