airflow.providers.opsgenie.notifications.opsgenie

Module Contents

Classes

OpsgenieNotifier

This notifier allows you to post alerts to Opsgenie.

Attributes

send_opsgenie_notification

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: Sequence[str] = ('payload',)[source]
hook()[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?