2019-12-04 03:58:27 +01:00
|
|
|
from restic_compose_backup.alerts.base import BaseAlert
|
|
|
|
|
|
|
|
|
|
|
|
class DiscordWebhookAlert(BaseAlert):
|
|
|
|
name = 'discord_webhook'
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
pass
|
|
|
|
|
2019-12-04 19:36:14 +01:00
|
|
|
@classmethod
|
|
|
|
def create_from_env(self):
|
|
|
|
return None
|
|
|
|
|
|
|
|
@property
|
|
|
|
def properly_configured(self) -> bool:
|
|
|
|
return False
|
2019-12-04 03:58:27 +01:00
|
|
|
|
2019-12-04 19:36:14 +01:00
|
|
|
def send(self, subject: str = None, attachment: str = None, alert_type: str = None):
|
2019-12-04 03:58:27 +01:00
|
|
|
pass
|