'Unable to get Dataflow steps information using Java API

I am trying to get the steps & jobMetrics information of an active streaming job using the following code:

val jobMetrics = dataflowClient.projects().jobs().getMetrics(projectId, jobId).execute().getMetrics
val steps = dataflowClient.projects().jobs().get(projectId, jobId).execute().getSteps

But, even though I am able to get the jobMetrics information, the steps is always returning null. Any pointers on what I am doing wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source