restic-compose-backup/restic_compose_backup/alerts/__init__.py

9 lines
204 B
Python

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