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. 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group