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

9 lines
204 B
Python
Raw Normal View History

2019-12-04 02:58:27 +00:00
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