airflow.providers.opsgenie.notifications.opsgenie

Attributes

send_opsgenie_notification

Classes

OpsgenieNotifier

This notifier allows you to post alerts to Opsgenie.

Module Contents

class airflow.providers.opsgenie.notifications.opsgenie.OpsgenieNotifier(*, payload, opsgenie_conn_id='opsgenie_default')[source]

Bases: airflow.notifications.basenotifier.BaseNotifier

This notifier allows you to post alerts to Opsgenie.

Accepts a connection that has an Opsgenie API key as the connection’s password. This notifier sets the domain to conn_id.host, and if not set will default to https://api.opsgenie.com.

Each Opsgenie API key can be pre-configured to a team integration. You can override these defaults in this notifier.

See also

For more information on how to use this notifier, take a look at the guide: Opsgenie Alert Notifier

Parameters:
template_fields: collections.abc.Sequence[str] = ('payload',)[source]
payload[source]
opsgenie_conn_id = 'opsgenie_default'[source]
property hook: airflow.providers.opsgenie.hooks.opsgenie.OpsgenieAlertHook[source]

Opsgenie alert Hook.

notify(context)[source]

Call the OpsgenieAlertHook to post message.

airflow.providers.opsgenie.notifications.opsgenie.send_opsgenie_notification[source]

Was this entry helpful?