class_docstr: This hook allows you to post alerts to Opsgenie.
  
  Accepts a connection that has an Opsgenie API key as the connection's password.
  This hook 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 hook.
  
  :param opsgenie_conn_id: The name of the Opsgenie connection to use
class_docstr_tok: ["This","hook","allows","you","to","post","alerts","to","Opsgenie",".","Accepts","a","connection","that","has","an","Opsgenie","API","key","as","the","connection","'s","password",".","This","hook","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","hook",".",":","param","opsgenie_conn_id",":","The","name","of","the","Opsgenie","connection","to","use"]
docstr: Close an alert in Opsgenie.
  
  :param identifier: Identifier of alert which could be alert id, tiny id or alert alias
  :param identifier_type: Type of the identifier that is provided as an in-line parameter.
      Possible values are 'id', 'alias' or 'tiny'
  :param payload: Request payload of closing alert action.
      see https://github.com/opsgenie/opsgenie-python-sdk/blob/master/docs/AlertApi.md#close_alert
  :param kwargs: params to pass to the function
  :return: SuccessResponse
           If the method is called asynchronously,
           returns the request thread.
docstr_tok: ["Close","an","alert","in","Opsgenie",".",":","param","identifier",":","Identifier","of","alert","which","could","be","alert","id",",","tiny","id","or","alert","alias",":","param","identifier_type",":","Type","of","the","identifier","that","is","provided","as","an","in-line","parameter",".","Possible","values","are","'id","'",",","'alias","'","or","'tiny'",":","param","payload",":","Request","payload","of","closing","alert","action",".","see","https",":","\/\/github.com\/opsgenie\/opsgenie-python-sdk\/blob\/master\/docs\/AlertApi.md","#","close_alert",":","param","kwargs",":","params","to","pass","to","the","function",":","return",":","SuccessResponse","If","the","method","is","called","asynchronously",",","returns","the","request","thread","."]
code: def close_alert(
      self,
      identifier: str,
      identifier_type: str | None = "id",
      payload: dict | None = None,
      **kwargs: dict | None,
  ) -> SuccessResponse:
      """
      Close an alert in Opsgenie.
  
      :param identifier: Identifier of alert which could be alert id, tiny id or alert alias
      :param identifier_type: Type of the identifier that is provided as an in-line parameter.
          Possible values are 'id', 'alias' or 'tiny'
      :param payload: Request payload of closing alert action.
          see https://github.com/opsgenie/opsgenie-python-sdk/blob/master/docs/AlertApi.md#close_alert
      :param kwargs: params to pass to the function
      :return: SuccessResponse
               If the method is called asynchronously,
               returns the request thread.
      """
      payload = payload or {}
      try:
          close_alert_payload = CloseAlertPayload(**payload)
          api_response = self.alert_api_instance.close_alert(
              identifier=identifier,
              identifier_type=identifier_type,
              close_alert_payload=close_alert_payload,
              **kwargs,
          )
          return api_response
      except OpenApiException as e:
          self.log.exception(
              "Exception when closing alert in opsgenie with payload: %s",
              payload,
          )
          raise e
  
file_path: airflow/airflow/providers/opsgenie/hooks/opsgenie.py
imports: from __future__ import annotations
  from typing import Any
  from opsgenie_sdk import AlertApi, ApiClient, CloseAlertPayload, Configuration, CreateAlertPayload, OpenApiException, SuccessResponse
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 5 for calling the OpsgenieAlertHook obj's underlying member method code with example usage: obj.close_alert(identifier, identifier_type, payload) and returns: api_response