class_docstr: 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.
  
  .. seealso::
      For more information on how to use this notifier, take a look at the guide:
      :ref:`howto/notifier:OpsgenieNotifier`
  
  :param payload: The payload necessary for creating an alert.
  :param opsgenie_conn_id: Optional. The name of the Opsgenie connection to use. Default conn_id is opsgenie_default
docstr: Opsgenie alert Hook.
code: def hook(self) -> OpsgenieAlertHook:
      """Opsgenie alert Hook."""
      return OpsgenieAlertHook(self.opsgenie_conn_id)
  
file_path: airflow/airflow/providers/opsgenie/notifications/opsgenie.py
imports: from __future__ import annotations
  from functools import cached_property
  from typing import TYPE_CHECKING, Sequence
  from airflow.notifications.basenotifier import BaseNotifier
  from airflow.providers.opsgenie.hooks.opsgenie import OpsgenieAlertHook
label_desc: Use image node_id 2 for calling the OpsgenieNotifier obj's underlying member method code with example usage: obj.hook() and returns: OpsgenieAlertHook