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.
HTTP request
GET https://dataflow.googleapis.com/v1b3/projects/{projectId}/jobs/{jobId}/metrics
Return only metric data that has changed since this time. Default is to return all information about all metrics for the job.
Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-30 UTC."],[[["\u003cp\u003eThis webpage details how to request the status of a job using the \u003ccode\u003eprojects.locations.jobs.getMetrics\u003c/code\u003e method, which is preferred over \u003ccode\u003eprojects.jobs.getMetrics\u003c/code\u003e because it supports regional endpoints.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request for retrieving job metrics is a \u003ccode\u003eGET\u003c/code\u003e request to \u003ccode\u003ehttps://dataflow.googleapis.com/v1b3/projects/{projectId}/jobs/{jobId}/metrics\u003c/code\u003e, utilizing gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eEssential path parameters include \u003ccode\u003eprojectId\u003c/code\u003e and \u003ccode\u003ejobId\u003c/code\u003e, while optional query parameters like \u003ccode\u003estartTime\u003c/code\u003e and \u003ccode\u003elocation\u003c/code\u003e allow for filtering results based on time and region.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and a successful response will return a \u003ccode\u003eJobMetrics\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires one of the specified OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/compute\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]