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,14 @@
from restic_compose_backup.alerts.base import BaseAlert
class SMTPAlert(BaseAlert):
name = 'smtp'
def __init__(self):
pass
def create_from_config(self, config):
pass
def send(self, self, subject=None, attachment=None, alert_type=ALERT_ERROR):
pass