Skip to main content

jobs_metrics

Creates, updates, deletes, gets or lists a jobs_metrics resource.

Overview

Namejobs_metrics
TypeResource
Idgoogle.dataflow.jobs_metrics

Fields

NameDatatypeDescription
metricTimestringTimestamp as of which metric values are current.
metricsarrayAll metrics for this job.

Methods

NameAccessible byRequired ParamsDescription
projects_jobs_get_metricsSELECTjobId, projectIdRequest the job status. To request the status of a job, we recommend using projects.locations.jobs.getMetrics with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using projects.jobs.getMetrics is not recommended, as you can only request the status of jobs that are running in us-central1.
projects_locations_jobs_get_metricsSELECTjobId, location, projectIdRequest the job status. To request the status of a job, we recommend using projects.locations.jobs.getMetrics with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using projects.jobs.getMetrics is not recommended, as you can only request the status of jobs that are running in us-central1.

SELECT examples

Request the job status. To request the status of a job, we recommend using projects.locations.jobs.getMetrics with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using projects.jobs.getMetrics is not recommended, as you can only request the status of jobs that are running in us-central1.

SELECT
metricTime,
metrics
FROM google.dataflow.jobs_metrics
WHERE jobId = '{{ jobId }}'
AND projectId = '{{ projectId }}';