Working mail alerts + alert system tweaks

This commit is contained in:
Einar Forselv
2019-12-04 19:36:14 +01:00
parent 26ea7a2a00
commit a4a8a2f462
5 changed files with 79 additions and 35 deletions

View File

@@ -7,8 +7,13 @@ class DiscordWebhookAlert(BaseAlert):
def __init__(self):
pass
def create_from_config(self, config):
pass
@classmethod
def create_from_env(self):
return None
def send(self, self, subject=None, attachment=None, alert_type=ALERT_ERROR):
@property
def properly_configured(self) -> bool:
return False
def send(self, subject: str = None, attachment: str = None, alert_type: str = None):
pass