class_docstr: 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.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:OpsgenieCreateAlertOperator`
  
  :param opsgenie_conn_id: The name of the Opsgenie connection to use
  :param message: The Message of the Opsgenie alert (templated)
  :param alias: Client-defined identifier of the alert (templated)
  :param description: Description field of the alert (templated)
  :param responders: Teams, users, escalations and schedules that
      the alert will be routed to send notifications.
  :param visible_to: Teams and users that the alert will become visible
      to without sending any notification.
  :param actions: Custom actions that will be available for the alert.
  :param tags: Tags of the alert.
  :param details: Map of key-value pairs to use as custom properties of the alert.
  :param entity: Entity field of the alert that is
      generally used to specify which domain alert is related to. (templated)
  :param source: Source field of the alert. Default value is
      IP address of the incoming request.
  :param priority: Priority level of the alert. Default value is P3. (templated)
  :param user: Display name of the request owner.
  :param note: Additional note that will be added while creating the alert. (templated)
class_docstr_tok: ["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",".","..","seealso",":",":","For","more","information","on","how","to","use","this","operator",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/operator",":","OpsgenieCreateAlertOperator","`",":","param","opsgenie_conn_id",":","The","name","of","the","Opsgenie","connection","to","use",":","param","message",":","The","Message","of","the","Opsgenie","alert","(","templated",")",":","param","alias",":","Client-defined","identifier","of","the","alert","(","templated",")",":","param","description",":","Description","field","of","the","alert","(","templated",")",":","param","responders",":","Teams",",","users",",","escalations","and","schedules","that","the","alert","will","be","routed","to","send","notifications",".",":","param","visible_to",":","Teams","and","users","that","the","alert","will","become","visible","to","without","sending","any","notification",".",":","param","actions",":","Custom","actions","that","will","be","available","for","the","alert",".",":","param","tags",":","Tags","of","the","alert",".",":","param","details",":","Map","of","key-value","pairs","to","use","as","custom","properties","of","the","alert",".",":","param","entity",":","Entity","field","of","the","alert","that","is","generally","used","to","specify","which","domain","alert","is","related","to",".","(","templated",")",":","param","source",":","Source","field","of","the","alert",".","Default","value","is","IP","address","of","the","incoming","request",".",":","param","priority",":","Priority","level","of","the","alert",".","Default","value","is","P3",".","(","templated",")",":","param","user",":","Display","name","of","the","request","owner",".",":","param","note",":","Additional","note","that","will","be","added","while","creating","the","alert",".","(","templated",")"]
docstr: Call the OpsgenieAlertHook to post message.
docstr_tok: ["Call","the","OpsgenieAlertHook","to","post","message","."]
code: def execute(self, context: Context) -> None:
      """Call the OpsgenieAlertHook to post message."""
      self.hook = OpsgenieAlertHook(self.opsgenie_conn_id)
      self.hook.create_alert(self._build_opsgenie_payload())
  
file_path: airflow/airflow/providers/opsgenie/operators/opsgenie.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, Sequence
  from airflow.models import BaseOperator
  from airflow.providers.opsgenie.hooks.opsgenie import OpsgenieAlertHook
label_desc: Use image node_id 3 for calling the OpsgenieCreateAlertOperator obj's underlying member method code with example usage: obj.execute(context) without return types