mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-12 05:35:19 +00:00
some actual alerts and telegram client
This commit is contained in:
parent
f158bc3778
commit
ffdd0429b3
10 changed files with 314 additions and 33 deletions
23
src/lego_monitoring/alerting/enum.py
Normal file
23
src/lego_monitoring/alerting/enum.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
from enum import StrEnum
|
||||
|
||||
|
||||
class AlertType(StrEnum):
|
||||
BOOT = "BOOT"
|
||||
TEST = "TEST"
|
||||
# ERROR = "ERROR"
|
||||
# RAM = "RAM"
|
||||
# CPU = "CPU"
|
||||
# TEMP = "TEMP"
|
||||
# VULN = "VULN"
|
||||
# LOGIN = "LOGIN"
|
||||
# SMART = "SMART" # TODO
|
||||
# RAID = "RAID"
|
||||
# DISKS = "DISKS"
|
||||
# UPS = "UPS"
|
||||
# UPDATE = "UPDATE"
|
||||
|
||||
|
||||
class Severity(StrEnum):
|
||||
INFO = "INFO"
|
||||
WARNING = "WARNING"
|
||||
CRITICAL = "CRITICAL"
|
||||
Loading…
Add table
Add a link
Reference in a new issue