Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.6 KB

AsyncQueryResponse.md

File metadata and controls

33 lines (24 loc) · 1.6 KB

AsyncQueryResponse

Response returned when a query is submitted asynchronously (202 Accepted). Poll GET /query-runs/{id} to track progress, sending the same X-Database-Id header used to submit the query — the endpoint is scoped to that database and returns 400 without it. Once status is "succeeded", retrieve results via GET /results/{result_id}.

Properties

Name Type Description Notes
query_run_id str Unique identifier for the query run.
reason str Human-readable reason why the query went async (e.g., caching tables for the first time). [optional]
status str Current status of the query run.
status_url str URL to poll for query run status. Requires the same `X-Database-Id` header used to submit the query.

Example

from hotdata.models.async_query_response import AsyncQueryResponse

# TODO update the JSON string below
json = "{}"
# create an instance of AsyncQueryResponse from a JSON string
async_query_response_instance = AsyncQueryResponse.from_json(json)
# print the JSON string representation of the object
print(AsyncQueryResponse.to_json())

# convert the object into a dict
async_query_response_dict = async_query_response_instance.to_dict()
# create an instance of AsyncQueryResponse from a dict
async_query_response_from_dict = AsyncQueryResponse.from_dict(async_query_response_dict)

[Back to Model list] [Back to API list] [Back to README]