For more details refer to the query history documentation.
This function elevates the sub-components of filter_by
parameter to the R
function directly.
db_sql_query_history(
statuses = NULL,
user_ids = NULL,
endpoint_ids = NULL,
start_time_ms = NULL,
end_time_ms = NULL,
max_results = 100,
page_token = NULL,
include_metrics = FALSE,
host = db_host(),
token = db_token(),
perform_request = TRUE
)
Allows filtering by query status. Possible values are:
QUEUED
, RUNNING
, CANCELED
, FAILED
, FINISHED
. Multiple permitted.
Allows filtering by user ID's. Multiple permitted.
Allows filtering by endpoint ID's. Multiple permitted.
Integer, limit results to queries that started after this time.
Integer, limit results to queries that started before this time.
Limit the number of results returned in one page. Default is 100.
Opaque token used to get the next page of results. Optional.
Whether to include metrics about query execution.
Databricks workspace URL, defaults to calling db_host()
.
Databricks workspace token, defaults to calling db_token()
.
If TRUE
(default) the request is performed, if
FALSE
the httr2 request is returned without being performed.
By default the filter parameters statuses
, user_ids
, and endpoints_ids
are NULL
.