2022-07-02 16:00:54 +02:00
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
|
|
|
class NotificationType(str, Enum):
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Enumerate notification types."""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
ALERTA = "alerta"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Alerta"""
|
|
|
|
|
2023-05-20 13:10:12 +02:00
|
|
|
ALERTNOW = "AlertNow"
|
|
|
|
"""AlertNow"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
ALIYUNSMS = "AliyunSMS"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""AliyunSMS"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
APPRISE = "apprise"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Apprise (Support 50+ Notification services)"""
|
|
|
|
|
2023-05-20 13:10:12 +02:00
|
|
|
BARK = "Bark"
|
|
|
|
"""Bark"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
CLICKSENDSMS = "clicksendsms"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""ClickSend SMS"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
DINGDING = "DingDing"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""DingDing"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
DISCORD = "discord"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Discord"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
FEISHU = "Feishu"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Feishu"""
|
|
|
|
|
2023-08-29 18:37:27 +02:00
|
|
|
FLASHDUTY = "FlashDuty"
|
|
|
|
"""FlashDuty"""
|
|
|
|
|
2023-05-20 13:10:12 +02:00
|
|
|
FREEMOBILE = "FreeMobile"
|
|
|
|
"""FreeMobile (mobile.free.fr)"""
|
|
|
|
|
|
|
|
GOALERT = "GoAlert"
|
|
|
|
"""GoAlert"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
GOOGLECHAT = "GoogleChat"
|
2023-05-20 13:10:12 +02:00
|
|
|
"""Google Chat (Google Workspace)"""
|
2022-12-16 21:39:18 +01:00
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
GORUSH = "gorush"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Gorush"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
GOTIFY = "gotify"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Gotify"""
|
|
|
|
|
2023-05-20 13:10:12 +02:00
|
|
|
HOMEASSISTANT = "HomeAssistant"
|
|
|
|
"""Home Assistant"""
|
|
|
|
|
|
|
|
KOOK = "Kook"
|
|
|
|
"""Kook"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
LINE = "line"
|
2023-05-20 13:10:12 +02:00
|
|
|
"""LINE Messenger"""
|
|
|
|
|
|
|
|
LINENOTIFY = "LineNotify"
|
|
|
|
"""LINE Notify"""
|
2022-12-16 21:39:18 +01:00
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
LUNASEA = "lunasea"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""LunaSea"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
MATRIX = "matrix"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Matrix"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
MATTERMOST = "mattermost"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Mattermost"""
|
|
|
|
|
2023-08-29 18:37:27 +02:00
|
|
|
NOSTR = "nostr"
|
|
|
|
"""Nostr"""
|
|
|
|
|
2023-05-20 13:10:12 +02:00
|
|
|
NTFY = "ntfy"
|
|
|
|
"""Ntfy"""
|
|
|
|
|
|
|
|
OCTOPUSH = "octopush"
|
|
|
|
"""Octopush"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
ONEBOT = "OneBot"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""OneBot"""
|
|
|
|
|
2023-05-20 13:10:12 +02:00
|
|
|
OPSGENIE = "Opsgenie"
|
|
|
|
"""Opsgenie"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
PAGERDUTY = "PagerDuty"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""PagerDuty"""
|
|
|
|
|
2023-03-20 15:14:39 +01:00
|
|
|
PAGERTREE = "PagerTree"
|
|
|
|
"""PagerTree"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
PROMOSMS = "promosms"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""PromoSMS"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
PUSHBULLET = "pushbullet"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Pushbullet"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
PUSHDEER = "PushDeer"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""PushDeer"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
PUSHOVER = "pushover"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Pushover"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
PUSHY = "pushy"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Pushy"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
ROCKET_CHAT = "rocket.chat"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Rocket.Chat"""
|
|
|
|
|
2023-05-20 13:10:12 +02:00
|
|
|
SERVERCHAN = "ServerChan"
|
|
|
|
"""ServerChan"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
SERWERSMS = "serwersms"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""SerwerSMS.pl"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
SIGNAL = "signal"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Signal"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
SLACK = "slack"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Slack"""
|
|
|
|
|
2023-08-29 18:37:27 +02:00
|
|
|
SMSC = "smsc"
|
|
|
|
"""SMSC"""
|
|
|
|
|
2023-05-20 13:10:12 +02:00
|
|
|
SMSEAGLE = "SMSEagle"
|
|
|
|
"""SMSEagle"""
|
|
|
|
|
|
|
|
SMSMANAGER = "SMSManager"
|
|
|
|
"""SmsManager (smsmanager.cz)"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
SMTP = "smtp"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Email (SMTP)"""
|
|
|
|
|
2023-05-20 13:10:12 +02:00
|
|
|
SPLUNK = "Splunk"
|
|
|
|
"""Splunk"""
|
|
|
|
|
|
|
|
SQUADCAST = "squadcast"
|
|
|
|
"""SquadCast"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
STACKFIELD = "stackfield"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Stackfield"""
|
|
|
|
|
2023-05-20 13:10:12 +02:00
|
|
|
TEAMS = "teams"
|
|
|
|
"""Microsoft Teams"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
PUSHBYTECHULUS = "PushByTechulus"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Push by Techulus"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
TELEGRAM = "telegram"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Telegram"""
|
|
|
|
|
2023-05-20 13:10:12 +02:00
|
|
|
TWILIO = "twilio"
|
|
|
|
"""Twilio"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
WEBHOOK = "webhook"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Webhook"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
WECOM = "WeCom"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""WeCom"""
|
|
|
|
|
2023-01-04 22:46:12 +01:00
|
|
|
ZOHOCLIQ = "ZohoCliq"
|
|
|
|
"""ZohoCliq"""
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
|
|
|
|
notification_provider_options = {
|
2022-11-05 18:48:31 +01:00
|
|
|
NotificationType.ALERTA: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
alertaApiEndpoint=dict(type="str", required=True),
|
|
|
|
alertaApiKey=dict(type="str", required=True),
|
|
|
|
alertaEnvironment=dict(type="str", required=True),
|
|
|
|
alertaAlertState=dict(type="str", required=True),
|
|
|
|
alertaRecoverState=dict(type="str", required=True),
|
|
|
|
),
|
|
|
|
NotificationType.ALERTNOW: dict(
|
|
|
|
alertNowWebhookURL=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.ALIYUNSMS: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
phonenumber=dict(type="str", required=True),
|
|
|
|
templateCode=dict(type="str", required=True),
|
|
|
|
signName=dict(type="str", required=True),
|
|
|
|
accessKeyId=dict(type="str", required=True),
|
|
|
|
secretAccessKey=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.APPRISE: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
appriseURL=dict(type="str", required=True),
|
|
|
|
title=dict(type="str", required=False),
|
|
|
|
),
|
|
|
|
NotificationType.BARK: dict(
|
|
|
|
barkEndpoint=dict(type="str", required=True),
|
|
|
|
barkGroup=dict(type="str", required=True),
|
|
|
|
barkSound=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.CLICKSENDSMS: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
clicksendsmsLogin=dict(type="str", required=True),
|
|
|
|
clicksendsmsPassword=dict(type="str", required=True),
|
|
|
|
clicksendsmsToNumber=dict(type="str", required=True),
|
|
|
|
clicksendsmsSenderName=dict(type="str", required=False),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.DINGDING: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
webHookUrl=dict(type="str", required=True),
|
|
|
|
secretKey=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.DISCORD: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
discordUsername=dict(type="str", required=False),
|
|
|
|
discordWebhookUrl=dict(type="str", required=True),
|
|
|
|
discordPrefixMessage=dict(type="str", required=False),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.FEISHU: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
feishuWebHookUrl=dict(type="str", required=True),
|
|
|
|
),
|
2023-08-29 18:37:27 +02:00
|
|
|
NotificationType.FLASHDUTY: dict(
|
|
|
|
flashdutySeverity=dict(type="str", required=True),
|
|
|
|
flashdutyIntegrationKey=dict(type="str", required=False),
|
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.FREEMOBILE: dict(
|
|
|
|
freemobileUser=dict(type="str", required=True),
|
|
|
|
freemobilePass=dict(type="str", required=True),
|
|
|
|
),
|
|
|
|
NotificationType.GOALERT: dict(
|
|
|
|
goAlertBaseURL=dict(type="str", required=True),
|
|
|
|
goAlertToken=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.GOOGLECHAT: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
googleChatWebhookURL=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.GORUSH: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
gorushDeviceToken=dict(type="str", required=True),
|
|
|
|
gorushPlatform=dict(type="str", required=False),
|
|
|
|
gorushTitle=dict(type="str", required=False),
|
|
|
|
gorushPriority=dict(type="str", required=False),
|
|
|
|
gorushRetry=dict(type="int", required=False),
|
|
|
|
gorushTopic=dict(type="str", required=False),
|
|
|
|
gorushServerURL=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.GOTIFY: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
gotifyserverurl=dict(type="str", required=True),
|
|
|
|
gotifyapplicationToken=dict(type="str", required=True),
|
|
|
|
gotifyPriority=dict(type="int", required=True),
|
|
|
|
),
|
|
|
|
NotificationType.HOMEASSISTANT: dict(
|
|
|
|
notificationService=dict(type="str", required=False),
|
|
|
|
homeAssistantUrl=dict(type="str", required=True),
|
|
|
|
longLivedAccessToken=dict(type="str", required=True),
|
|
|
|
),
|
|
|
|
NotificationType.KOOK: dict(
|
|
|
|
kookGuildID=dict(type="str", required=True),
|
|
|
|
kookBotToken=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.LINE: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
lineChannelAccessToken=dict(type="str", required=True),
|
|
|
|
lineUserID=dict(type="str", required=True),
|
|
|
|
),
|
|
|
|
NotificationType.LINENOTIFY: dict(
|
|
|
|
lineNotifyAccessToken=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.LUNASEA: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
lunaseaTarget=dict(type="str", required=True),
|
|
|
|
lunaseaUserID=dict(type="str", required=False),
|
|
|
|
lunaseaDevice=dict(type="str", required=False),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.MATRIX: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
internalRoomId=dict(type="str", required=True),
|
|
|
|
accessToken=dict(type="str", required=True),
|
|
|
|
homeserverUrl=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.MATTERMOST: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
mattermostusername=dict(type="str", required=False),
|
|
|
|
mattermostWebhookUrl=dict(type="str", required=True),
|
|
|
|
mattermostchannel=dict(type="str", required=False),
|
|
|
|
mattermosticonemo=dict(type="str", required=False),
|
|
|
|
mattermosticonurl=dict(type="str", required=False),
|
|
|
|
),
|
2023-08-29 18:37:27 +02:00
|
|
|
NotificationType.NOSTR: dict(
|
|
|
|
sender=dict(type="str", required=True),
|
|
|
|
recipients=dict(type="str", required=True),
|
|
|
|
relays=dict(type="str", required=True),
|
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.NTFY: dict(
|
2023-07-07 22:28:20 +02:00
|
|
|
ntfyAuthenticationMethod=dict(type="str", required=False),
|
2023-05-20 13:10:12 +02:00
|
|
|
ntfyusername=dict(type="str", required=False),
|
|
|
|
ntfypassword=dict(type="str", required=False),
|
2023-07-07 22:28:20 +02:00
|
|
|
ntfyaccesstoken=dict(type="str", required=False),
|
2023-05-20 13:10:12 +02:00
|
|
|
ntfytopic=dict(type="str", required=True),
|
|
|
|
ntfyPriority=dict(type="int", required=True),
|
|
|
|
ntfyserverurl=dict(type="str", required=True),
|
2023-07-07 22:28:20 +02:00
|
|
|
ntfyIcon=dict(type="str", required=False),
|
2023-05-20 13:10:12 +02:00
|
|
|
),
|
|
|
|
NotificationType.OCTOPUSH: dict(
|
|
|
|
octopushVersion=dict(type="str", required=False),
|
|
|
|
octopushAPIKey=dict(type="str", required=True),
|
|
|
|
octopushLogin=dict(type="str", required=True),
|
|
|
|
octopushPhoneNumber=dict(type="str", required=True),
|
|
|
|
octopushSMSType=dict(type="str", required=False),
|
|
|
|
octopushSenderName=dict(type="str", required=False),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.ONEBOT: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
httpAddr=dict(type="str", required=True),
|
|
|
|
accessToken=dict(type="str", required=True),
|
|
|
|
msgType=dict(type="str", required=False),
|
|
|
|
recieverId=dict(type="str", required=True),
|
|
|
|
),
|
|
|
|
NotificationType.OPSGENIE: dict(
|
|
|
|
opsgeniePriority=dict(type="int", required=False),
|
|
|
|
opsgenieRegion=dict(type="str", required=True),
|
|
|
|
opsgenieApiKey=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.PAGERDUTY: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
pagerdutyAutoResolve=dict(type="str", required=False),
|
|
|
|
pagerdutyIntegrationUrl=dict(type="str", required=False),
|
|
|
|
pagerdutyPriority=dict(type="str", required=False),
|
|
|
|
pagerdutyIntegrationKey=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
2023-03-20 15:14:39 +01:00
|
|
|
NotificationType.PAGERTREE: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
pagertreeAutoResolve=dict(type="str", required=False),
|
|
|
|
pagertreeIntegrationUrl=dict(type="str", required=False),
|
|
|
|
pagertreeUrgency=dict(type="str", required=False),
|
2023-03-20 15:14:39 +01:00
|
|
|
),
|
2022-11-05 18:48:31 +01:00
|
|
|
NotificationType.PROMOSMS: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
promosmsAllowLongSMS=dict(type="bool", required=False),
|
|
|
|
promosmsLogin=dict(type="str", required=True),
|
|
|
|
promosmsPassword=dict(type="str", required=True),
|
|
|
|
promosmsPhoneNumber=dict(type="str", required=True),
|
|
|
|
promosmsSMSType=dict(type="str", required=False),
|
|
|
|
promosmsSenderName=dict(type="str", required=False),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.PUSHBULLET: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
pushbulletAccessToken=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.PUSHDEER: dict(
|
2023-08-29 18:37:27 +02:00
|
|
|
pushdeerServer=dict(type="str", required=False),
|
2023-05-20 13:10:12 +02:00
|
|
|
pushdeerKey=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.PUSHOVER: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
pushoveruserkey=dict(type="str", required=True),
|
|
|
|
pushoverapptoken=dict(type="str", required=True),
|
|
|
|
pushoversounds=dict(type="str", required=False),
|
|
|
|
pushoverpriority=dict(type="str", required=False),
|
|
|
|
pushovertitle=dict(type="str", required=False),
|
|
|
|
pushoverdevice=dict(type="str", required=False),
|
2023-07-07 22:28:20 +02:00
|
|
|
pushoverttl=dict(type="int", required=False),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.PUSHY: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
pushyAPIKey=dict(type="str", required=True),
|
|
|
|
pushyToken=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.ROCKET_CHAT: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
rocketchannel=dict(type="str", required=False),
|
|
|
|
rocketusername=dict(type="str", required=False),
|
|
|
|
rocketiconemo=dict(type="str", required=False),
|
|
|
|
rocketwebhookURL=dict(type="str", required=True),
|
|
|
|
),
|
|
|
|
NotificationType.SERVERCHAN: dict(
|
|
|
|
serverChanSendKey=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.SERWERSMS: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
serwersmsUsername=dict(type="str", required=True),
|
|
|
|
serwersmsPassword=dict(type="str", required=True),
|
|
|
|
serwersmsPhoneNumber=dict(type="str", required=True),
|
|
|
|
serwersmsSenderName=dict(type="str", required=False),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.SIGNAL: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
signalNumber=dict(type="str", required=True),
|
|
|
|
signalRecipients=dict(type="str", required=True),
|
|
|
|
signalURL=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.SLACK: dict(
|
2023-08-29 18:37:27 +02:00
|
|
|
slackchannelnotify=dict(type="bool", required=False),
|
2023-05-20 13:10:12 +02:00
|
|
|
slackchannel=dict(type="str", required=False),
|
|
|
|
slackusername=dict(type="str", required=False),
|
|
|
|
slackiconemo=dict(type="str", required=False),
|
|
|
|
slackwebhookURL=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
2023-08-29 18:37:27 +02:00
|
|
|
NotificationType.SMSC: dict(
|
|
|
|
smscTranslit=dict(type="str", required=False),
|
|
|
|
smscLogin=dict(type="str", required=True),
|
|
|
|
smscPassword=dict(type="str", required=True),
|
|
|
|
smscToNumber=dict(type="str", required=True),
|
|
|
|
smscSenderName=dict(type="str", required=False),
|
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.SMSEAGLE: dict(
|
|
|
|
smseagleEncoding=dict(type="bool", required=False),
|
|
|
|
smseaglePriority=dict(type="int", required=False),
|
|
|
|
smseagleRecipientType=dict(type="str", required=False),
|
|
|
|
smseagleToken=dict(type="str", required=True),
|
|
|
|
smseagleRecipient=dict(type="str", required=True),
|
|
|
|
smseagleUrl=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.SMSMANAGER: dict(
|
|
|
|
smsmanagerApiKey=dict(type="str", required=False),
|
|
|
|
numbers=dict(type="str", required=False),
|
|
|
|
messageType=dict(type="str", required=False),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.SMTP: dict(
|
|
|
|
smtpHost=dict(type="str", required=True),
|
|
|
|
smtpPort=dict(type="int", required=True),
|
|
|
|
smtpSecure=dict(type="str", required=False),
|
|
|
|
smtpIgnoreTLSError=dict(type="bool", required=False),
|
|
|
|
smtpDkimDomain=dict(type="str", required=False),
|
|
|
|
smtpDkimKeySelector=dict(type="str", required=False),
|
|
|
|
smtpDkimPrivateKey=dict(type="str", required=False),
|
|
|
|
smtpDkimHashAlgo=dict(type="str", required=False),
|
|
|
|
smtpDkimheaderFieldNames=dict(type="str", required=False),
|
|
|
|
smtpDkimskipFields=dict(type="str", required=False),
|
|
|
|
smtpUsername=dict(type="str", required=False),
|
|
|
|
smtpPassword=dict(type="str", required=False),
|
|
|
|
customSubject=dict(type="str", required=False),
|
|
|
|
smtpFrom=dict(type="str", required=True),
|
|
|
|
smtpCC=dict(type="str", required=False),
|
|
|
|
smtpBCC=dict(type="str", required=False),
|
|
|
|
smtpTo=dict(type="str", required=False),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.SPLUNK: dict(
|
|
|
|
splunkAutoResolve=dict(type="str", required=False),
|
|
|
|
splunkSeverity=dict(type="str", required=False),
|
|
|
|
splunkRestURL=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
NotificationType.SQUADCAST: dict(
|
2023-05-20 13:10:12 +02:00
|
|
|
squadcastWebhookURL=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.STACKFIELD: dict(
|
|
|
|
stackfieldwebhookURL=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.TEAMS: dict(
|
|
|
|
webhookUrl=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.PUSHBYTECHULUS: dict(
|
|
|
|
pushAPIKey=dict(type="str", required=True),
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.TELEGRAM: dict(
|
|
|
|
telegramChatID=dict(type="str", required=True),
|
|
|
|
telegramSendSilently=dict(type="bool", required=False),
|
|
|
|
telegramProtectContent=dict(type="bool", required=False),
|
|
|
|
telegramMessageThreadID=dict(type="str", required=False),
|
|
|
|
telegramBotToken=dict(type="str", required=True),
|
2023-01-04 22:46:12 +01:00
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.TWILIO: dict(
|
|
|
|
twilioAccountSID=dict(type="str", required=True),
|
2023-08-29 18:37:27 +02:00
|
|
|
twilioApiKey=dict(type="str", required=False),
|
2023-05-20 13:10:12 +02:00
|
|
|
twilioAuthToken=dict(type="str", required=True),
|
|
|
|
twilioToNumber=dict(type="str", required=True),
|
|
|
|
twilioFromNumber=dict(type="str", required=True),
|
2023-01-04 22:46:12 +01:00
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.WEBHOOK: dict(
|
|
|
|
webhookContentType=dict(type="str", required=True),
|
2023-08-29 18:37:27 +02:00
|
|
|
webhookCustomBody=dict(type="str", required=False),
|
2023-05-20 13:10:12 +02:00
|
|
|
webhookAdditionalHeaders=dict(type="str", required=False),
|
|
|
|
webhookURL=dict(type="str", required=True),
|
2023-01-04 22:46:12 +01:00
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.WECOM: dict(
|
|
|
|
weComBotKey=dict(type="str", required=True),
|
2023-03-30 11:47:47 +02:00
|
|
|
),
|
2023-05-20 13:10:12 +02:00
|
|
|
NotificationType.ZOHOCLIQ: dict(
|
|
|
|
webhookUrl=dict(type="str", required=True),
|
2023-03-30 11:47:47 +02:00
|
|
|
),
|
2022-09-07 13:03:10 +02:00
|
|
|
}
|
|
|
|
|
2022-11-05 18:48:31 +01:00
|
|
|
notification_provider_conditions = dict(
|
|
|
|
gotifyPriority=dict(
|
|
|
|
min=0,
|
2023-05-20 13:10:12 +02:00
|
|
|
max=10,
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
|
|
|
ntfyPriority=dict(
|
|
|
|
min=1,
|
2023-05-20 13:10:12 +02:00
|
|
|
max=5,
|
|
|
|
),
|
|
|
|
opsgeniePriority=dict(
|
|
|
|
min=1,
|
|
|
|
max=5,
|
2022-11-05 18:48:31 +01:00
|
|
|
),
|
2023-07-07 22:28:20 +02:00
|
|
|
pushoverttl=dict(
|
|
|
|
min=0,
|
|
|
|
),
|
2022-12-29 00:22:53 +01:00
|
|
|
smseaglePriority=dict(
|
|
|
|
min=0,
|
2023-05-20 13:10:12 +02:00
|
|
|
max=9,
|
|
|
|
),
|
|
|
|
smtpPort=dict(
|
|
|
|
min=0,
|
|
|
|
max=65535,
|
2023-03-30 11:47:47 +02:00
|
|
|
),
|
2022-11-05 18:48:31 +01:00
|
|
|
)
|