OpsgenieCreateAlertOperator

Opsgenie

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

View on GitHub

Last Updated: Oct. 23, 2022

Access Instructions

Install the Opsgenie provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

opsgenie_conn_idThe name of the Opsgenie connection to use
messageRequiredThe Message of the Opsgenie alert (templated)
aliasClient-defined identifier of the alert (templated)
descriptionDescription field of the alert (templated)
respondersTeams, users, escalations and schedules that the alert will be routed to send notifications.
visible_toTeams and users that the alert will become visible to without sending any notification.
actionsCustom actions that will be available for the alert.
tagsTags of the alert.
detailsMap of key-value pairs to use as custom properties of the alert.
entityEntity field of the alert that is generally used to specify which domain alert is related to. (templated)
sourceSource field of the alert. Default value is IP address of the incoming request.
priorityPriority level of the alert. Default value is P3. (templated)
userDisplay name of the request owner.
noteAdditional note that will be added while creating the alert. (templated)

Documentation

This operator allows you to post alerts to Opsgenie. Accepts a connection that has an Opsgenie API key as the connection’s password. This operator 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 operator.

See also

For more information on how to use this operator, take a look at the guide: OpsgenieCreateAlertOperator

Was this page helpful?