airflow.providers.http.notifications.http¶
Attributes¶
Classes¶
HTTP Notifier. |
Module Contents¶
- class airflow.providers.http.notifications.http.HttpNotifier(*, http_conn_id=HttpHook.default_conn_name, endpoint=None, method='POST', data=None, json=None, headers=None, extra_options=None, **kwargs)[source]¶
Bases:
airflow.providers.common.compat.notifier.BaseNotifierHTTP Notifier.
Sends HTTP requests to notify external systems.
- Parameters:
http_conn_id (str) – HTTP connection id that has the base URL and optional authentication credentials.
endpoint (str | None) – The endpoint to be called i.e. resource/v1/query?
method (str) – The HTTP method to use. Defaults to POST.
data (dict[str, Any] | str | None) – Payload to be uploaded or request parameters
json (dict[str, Any] | str | None) – JSON payload to be uploaded
headers (dict[str, Any] | None) – Additional headers to be passed through as a dictionary
extra_options (dict[str, Any] | None) – Additional options to be used when executing the request
- property hook: airflow.providers.http.hooks.http.HttpHook[source]¶
HTTP Hook.
- property async_hook: airflow.providers.http.hooks.http.HttpAsyncHook[source]¶
HTTP Async Hook.