Basic alert system setup

This commit is contained in:
Einar Forselv
2019-12-04 03:58:27 +01:00
parent 7ca7f56258
commit 85e9efb769
5 changed files with 70 additions and 0 deletions

View 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