Memory-Expiry Alert: Cooldown 1h→12h, eigene Kategorie memory_expiry
This commit is contained in:
parent
6adf8b5428
commit
3b11674d73
1 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ ALERT_COOLDOWN_SECONDS = {
|
||||||
"silence": 3600,
|
"silence": 3600,
|
||||||
"http": 1800,
|
"http": 1800,
|
||||||
"restart": 900,
|
"restart": 900,
|
||||||
|
"memory_expiry": 43200,
|
||||||
"default": 3600,
|
"default": 3600,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -262,6 +263,8 @@ def _alert_category(alert_text: str) -> str:
|
||||||
return "http"
|
return "http"
|
||||||
if "Service-Neustart" in alert_text:
|
if "Service-Neustart" in alert_text:
|
||||||
return "restart"
|
return "restart"
|
||||||
|
if "Memory läuft ab" in alert_text:
|
||||||
|
return "memory_expiry"
|
||||||
return "default"
|
return "default"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue