mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-12 05:35:19 +00:00
remind about persistent alerts
This commit is contained in:
parent
2c234b2fd0
commit
f691180e9b
9 changed files with 115 additions and 30 deletions
|
|
@ -9,6 +9,7 @@ class AlertType(StrEnum):
|
|||
TEMP = "TEMP"
|
||||
TEST = "TEST"
|
||||
VULN = "VULN"
|
||||
REMIND = "REMIND"
|
||||
# LOGIN = "LOGIN"
|
||||
# SMART = "SMART" # TODO
|
||||
# RAID = "RAID"
|
||||
|
|
@ -22,3 +23,11 @@ class Severity(IntEnum):
|
|||
INFO = 1
|
||||
WARNING = 2
|
||||
CRITICAL = 3
|
||||
|
||||
|
||||
SEVERITY_TO_EMOJI = {
|
||||
Severity.OK: "🟢",
|
||||
Severity.INFO: "ℹ️",
|
||||
Severity.WARNING: "⚠️",
|
||||
Severity.CRITICAL: "🆘",
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue