- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 04:45 PM
Hi Team,
Is it possible I can use "query_start_time_range" filter from the api call to get the query data only from now to 5 mins ago?
Im using telegraf to call query history api but it looks like Im reaching the max return and I can't find how to use the pagination from telegraf.
My idea is running telegraf every 5 min and get the query history for the last 5 mins.
Thanks for the help.
Chinu Lee
- Labels:
-
Filter
-
Query
-
Query Data
-
Query History
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 02:37 PM
Have you checked this https://docs.databricks.com/api-explorer/workspace/queryhistory/list you can list the queries based on time range as well. So you can try passing the fields in the filter_by parameter. Then pass the value as (current time - 5 min)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 02:37 PM
Have you checked this https://docs.databricks.com/api-explorer/workspace/queryhistory/list you can list the queries based on time range as well. So you can try passing the fields in the filter_by parameter. Then pass the value as (current time - 5 min)

