mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-12 05:35:19 +00:00
checkers are now objects, lay foundation for persistent alerts
This commit is contained in:
parent
5d2759c63c
commit
eef6ec59b0
12 changed files with 162 additions and 81 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from enum import StrEnum
|
||||
from enum import IntEnum, StrEnum
|
||||
|
||||
|
||||
class AlertType(StrEnum):
|
||||
|
|
@ -17,7 +17,8 @@ class AlertType(StrEnum):
|
|||
# UPDATE = "UPDATE"
|
||||
|
||||
|
||||
class Severity(StrEnum):
|
||||
INFO = "INFO"
|
||||
WARNING = "WARNING"
|
||||
CRITICAL = "CRITICAL"
|
||||
class Severity(IntEnum):
|
||||
OK = 0 # should only be used when persistent alerts resolve
|
||||
INFO = 1
|
||||
WARNING = 2
|
||||
CRITICAL = 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue