mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-09-28 14:45:23 +00:00
Basic alert system setup
This commit is contained in:
8
restic_compose_backup/alerts/__init__.py
Normal file
8
restic_compose_backup/alerts/__init__.py
Normal file
@@ -0,0 +1,8 @@
|
||||
ALERT_INFO = 'INFO',
|
||||
ALERT_ERROR = 'ERROR'
|
||||
ALERT_TYPES = [ALERT_INFO, ALERT_ERROR]
|
||||
|
||||
|
||||
def send(subject: str = None, attachment: str = None, alert_type: str = ALERT_ERROR):
|
||||
"""Send an alert"""
|
||||
pass
|
Reference in New Issue
Block a user