airflow.providers.opsgenie.notifications.opsgenie¶
Attributes¶
Classes¶
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:
payload (airflow.providers.opsgenie.typing.opsgenie.CreateAlertPayload) – The payload necessary for creating an alert.
opsgenie_conn_id (str) – Optional. The name of the Opsgenie connection to use. Default conn_id is opsgenie_default
- template_fields: collections.abc.Sequence[str] = ('payload',)[source]¶
- property hook: airflow.providers.opsgenie.hooks.opsgenie.OpsgenieAlertHook[source]¶
Opsgenie alert Hook.