This page contains code samples for Dataflow. To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.
Check if active jobs exist for a project (Ruby)
Demonstrates how to check if active jobs exist for a project.
Get job execution details (Ruby)
Request detailed information about the execution status of the job.
Get job metrics (Ruby)
Demonstrates how to get a collection of metrics describing the progress of a job.
Get stage execution details (Ruby)
Demonstrates how to get information about the workers and work items within a stage.
List the jobs of a project across all regions (Ruby)
Demonstrates how to list the jobs of a project across all regions.
Run a template
This sample demonstrates basic execution of a Dataflow template by job name and template path.
View in documentation
Snapshot the state of a streaming job (Ruby)
Demonstrates how to snapshot the state of a streaming job.