Request the job status. To request the status of a job, we recommend
using projects.locations.jobs.getMetrics
with a regional endpoint
.
Using projects.jobs.getMetrics
is not recommended, as you can only
request the status of jobs that are running in us-central1
.
Arguments
jobId
string
Required. The job to get metrics for.
projectId
string
Required. A project id.
location
string
The regional endpoint that contains the job specified by job_id.
startTime
string ( Timestamp
format)
Return only metric data that has changed since this time. Default is to return all information about all metrics for the job.
Raised exceptions
ConnectionError
HttpError
TimeoutError
TypeError
ValueError
Response
If successful, the response contains an instance of JobMetrics
.
Subworkflow snippet
Some fields might be optional or required. To identify required fields, refer to the API documentation .
YAML
- getMetrics : call : googleapis.dataflow.v1b3.projects.jobs.getMetrics args : jobId : ... projectId : ... location : ... startTime : ... result : getMetricsResult
JSON
[ { "getMetrics" : { "call" : "googleapis.dataflow.v1b3.projects.jobs.getMetrics" , "args" : { "jobId" : "..." , "projectId" : "..." , "location" : "..." , "startTime" : "..." }, "result" : "getMetricsResult" } } ]

