jobs_metrics
Creates, updates, deletes, gets or lists a jobs_metrics
resource.
Overview
Name | jobs_metrics |
Type | Resource |
Id | google.dataflow.jobs_metrics |
Fields
Name | Datatype | Description |
---|---|---|
metricTime | string | Timestamp as of which metric values are current. |
metrics | array | All metrics for this job. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_jobs_get_metrics | SELECT | jobId, projectId | 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 . |
projects_locations_jobs_get_metrics | SELECT | jobId, location, projectId | 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
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 }}';