mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-09-28 14:45:23 +00:00
Basic alert system setup
This commit is contained in:
14
restic_compose_backup/alerts/discord.py
Normal file
14
restic_compose_backup/alerts/discord.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from restic_compose_backup.alerts.base import BaseAlert
|
||||
|
||||
|
||||
class DiscordWebhookAlert(BaseAlert):
|
||||
name = 'discord_webhook'
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def create_from_config(self, config):
|
||||
pass
|
||||
|
||||
def send(self, self, subject=None, attachment=None, alert_type=ALERT_ERROR):
|
||||
pass
|
Reference in New Issue
Block a user