Http Sensor Async¶
To executes a HTTP GET request
HttpSensorAsync
.
async_http_sensor = HttpSensorAsync(
task_id="async_http_sensor",
http_conn_id=HTTP_CONN_ID,
endpoint="",
request_params={},
# TODO response_check is currently not supported
# response_check=lambda response: "httpbin" in response.text,
poke_interval=5,
)
# https://github.com/astronomer/astronomer-providers/tree/main/astronomer/providers/http/example_dags/example_http.py