The problem I’m having:
I would like to use the dbt Cloud API to get job run details. Specifically which models failed. What is the API endpoint to query? I can use http://cloud.getdbt.com/api/v2/accounts/account/runs/jobrunid and get data.status_humanized to see “Error” but I want to see which models had the failure(s). I can query https://cloud.getdbt.com/api/v2/accounts/account/runs/jobrunid/?include_related=[“run_steps”] and see which command had errors but is there a way to succinctly get just the models that had a failure?
The context of why I’m trying to do this
I am hitting the dbt Cloud endpoints using a Web activity from ADF and wanting to save the output to a variable and then based on that display the error and fail the activity or move forward with the next step in our ELT process.
Thanks for any help!