airflow.providers.discord.notifications.discord¶
Attributes¶
Classes¶
Discord BaseNotifier. |
Module Contents¶
- airflow.providers.discord.notifications.discord.ICON_URL: str = 'https://raw.githubusercontent.com/apache/airflow/main/airflow-core/src/airflow/ui/public/pin_100.png'[source]¶
- class airflow.providers.discord.notifications.discord.DiscordNotifier(discord_conn_id='discord_webhook_default', text='This is a default message', username='Airflow', avatar_url=ICON_URL, tts=False)[source]¶
Bases:
airflow.providers.common.compat.notifier.BaseNotifier
Discord BaseNotifier.
- Parameters:
discord_conn_id (str) – Http connection ID with host as “https://discord.com/api/” and default webhook endpoint in the extra field in the form of {“webhook_endpoint”: “webhooks/{webhook.id}/{webhook.token}”}
text (str) – The content of the message
username (str) – The username to send the message as. Optional
avatar_url (str) – The URL of the avatar to use for the message. Optional
tts (bool) – Text to speech.
- avatar_url = 'https://raw.githubusercontent.com/apache/airflow/main/airflow-core/src/airflow/ui/public/pin_100.png'[source]¶
- property hook: airflow.providers.discord.hooks.discord_webhook.DiscordWebhookHook[source]¶
Discord Webhook Hook.