Getting `Waited for agent` timing for each step in Buildkite pipeline.yml

Is there a way to get the timeline data like Scheduled Job timestamp and Started Running Job timestamp in Buildkite pipeline.yml so I can use those data and send the metrics to Datadog?

Hi @vishal.k8696

First of all, welcome to Buildkite community and reaching out with your question

Just to make sure if I understand the question, you want to get the data like Scheduled Job timestamp and Started Running Job timestamp of a build for a specific pipeline so that you can insert that data into Datadog metrics ?

If so, you can use Buildkite REST API which lets you query for builds of a pipeline and in there you will get information about scheduled, started timestamps

Please let us know if you have any further questions. Thank you