cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

3 REPLIES 3

Sivaprasad1
Valued Contributor II

@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
New Contributor II

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. 

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now