Is there a way to add a date parameter to the jobs run API call?

190809
Contributor

Hi there I am currently making a call to the Databricks API jobs run endpoint. I would like to make this call on a daily basis to get data on the jobs run in the past 24 hours and add this to my delta table. Is there a way to set a GTE value in the API call? I can't see anything in the documentation. Thanks

Sivaprasad1
Databricks Employee
Databricks Employee

@Rachel Cunningham​ : Are you referring to list run API and to getting the runs that started after a particular time?

if so, please refer to https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsRunsList

The link explains the options of jobs API.

more specifically, to list the job runs between a specified time frame. I have found the parameters required in the call in the documentation for start_time_from and start_time_to. But if for example I try to return the records between 10th and 11th December. No records are returned.

AdrianC
Databricks Partner

Actually the "start_time_to" parameter doesn't seem to work at all. Neither alone or together with "start_time_from" (Whenever used the api call returns nothing). I'd like to report this as an issue as we want to automate our cluster usage monitoring and we need to watch over specific time intervals.