OpsgenieCreateAlertOperator

Use the OpsgenieCreateAlertOperator to send an alert to opsgenie.

Using the Operator

Send an alert to Opsgenie with a specific message.

tests/system/providers/opsgenie/example_opsgenie_alert.py[source]

    opsgenie_alert_operator = OpsgenieCreateAlertOperator(task_id="opsgenie_task", message="Hello World!")

OpsgenieCloseAlertOperator

Use the OpsgenieCloseAlertOperator to close alert in opsgenie.

Using the Operator

Close alert in Opsgenie.

tests/system/providers/opsgenie/example_opsgenie_alert.py[source]

    opsgenie_close_alert_operator = OpsgenieCloseAlertOperator(
        task_id="opsgenie_close_task", identifier="identifier_example"
    )

OpsgenieDeleteAlertOperator

Use the OpsgenieDeleteAlertOperator to delete alert in opsgenie.

Using the Operator

Delete alert in Opsgenie.

tests/system/providers/opsgenie/example_opsgenie_alert.py[source]

opsgenie_delete_alert_operator = OpsgenieDeleteAlertOperator(
    task_id="opsgenie_delete_task", identifier="identifier_example"
)

Was this entry helpful?