- Resource: Job
- JSON representation
- JobType
- Environment
- WorkerPool
- Package
- DefaultPackageSet
- TeardownPolicy
- TaskRunnerSettings
- WorkerSettings
- Disk
- AutoscalingSettings
- AutoscalingAlgorithm
- WorkerIPAddressConfiguration
- SdkHarnessContainerImage
- FlexResourceSchedulingGoal
- ShuffleMode
- DebugOptions
- DataSamplingConfig
- DataSamplingBehavior
- StreamingMode
- Step
- JobState
- JobExecutionInfo
- JobExecutionStageInfo
- PipelineDescription
- TransformSummary
- KindType
- DisplayData
- ExecutionStageSummary
- StageSource
- ComponentTransform
- ComponentSource
- ExecutionStageState
- JobMetadata
- SdkVersion
- SdkSupportStatus
- SdkBug
- Type
- Severity
- SpannerIODetails
- BigQueryIODetails
- BigTableIODetails
- PubSubIODetails
- FileIODetails
- DatastoreIODetails
- RuntimeUpdatableParams
- ServiceResources
- Methods
Resource: Job
Defines a job to be run by the Cloud Dataflow service. Do not enter confidential information when you supply string values using the API.
JSON representation |
---|
{ "id": string, "projectId": string, "name": string, "type": enum ( |
Fields | |
---|---|
id |
The unique ID of this job. This field is set by the Dataflow service when the job is created, and is immutable for the life of the job. |
project |
The ID of the Google Cloud project that the job belongs to. |
name |
Optional. The user-specified Dataflow job name. Only one active job with a given name can exist in a project within one region at any given time. Jobs in different regions can have the same name. If a caller attempts to create a job with the same name as an active job that already exists, the attempt returns the existing job. The name must match the regular expression |
type |
Optional. The type of Dataflow job. |
environment |
Optional. The environment for the job. |
steps[] |
Exactly one of step or stepsLocation should be specified. The top-level steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL. |
steps |
The Cloud Storage location where the steps are stored. |
current |
The current state of the job. Jobs are created in the A job in the This field might be mutated by the Dataflow service; callers cannot mutate it. |
current |
The timestamp associated with the current state. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
requested |
The job's requested state. Applies to Set This field has no effect on |
execution |
Deprecated. |
create |
The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
replace |
If this job is an update of an existing job, this field is the job ID of the job it replaced. When sending a |
transform |
Optional. The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. |
client |
The client's unique identifier of the job, re-used across retried attempts. If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client's ID and job name. The caller may use this field to ensure idempotence of job creation across retried attempts to create a job. By default, the field is empty and, in that case, the service ignores it. |
replaced |
If another job is an update of this job (and thus, this job is in |
temp |
A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job completion. No duplicates are allowed. No file patterns are supported. The supported files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object} |
labels |
User-defined labels for this job. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions:
|
location |
Optional. The regional endpoint that contains this job. |
pipeline |
Preliminary field: The format of this data may change at any time. A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service. Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL. |
stage |
This field may be mutated by the Cloud Dataflow service; callers cannot mutate it. |
job |
This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for jobs.list and all jobs.get views SUMMARY and higher. |
start |
The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so startTime is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, startTime always equals to createTime and is immutable and set by the Cloud Dataflow service. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
created |
If this is specified, the job's initial state is populated from the given snapshot. |
satisfies |
Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests. |
runtime |
This field may ONLY be modified at runtime using the projects.jobs.update method to adjust job behavior. This field has no effect when specified at job creation. |
satisfies |
Output only. Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests. |
service |
Output only. Resources used by the Dataflow Service to run the job. |
JobType
Specifies the processing model used by a google.dataflow.v1beta3.Job
, which determines the way the Job is managed by the Cloud Dataflow service (how workers are scheduled, how inputs are sharded, etc).
Enums | |
---|---|
JOB_TYPE_UNKNOWN |
The type of the job is unspecified, or unknown. |
JOB_TYPE_BATCH |
A batch job with a well-defined end point: data is read, data is processed, data is written, and the job is done. |
JOB_TYPE_STREAMING |
A continuously streaming job with no end: data is read, processed, and written continuously. |
Environment
Describes the environment in which a Dataflow Job runs.
JSON representation |
---|
{ "tempStoragePrefix": string, "clusterManagerApiService": string, "experiments": [ string ], "serviceOptions": [ string ], "serviceKmsKeyName": string, "workerPools": [ { object ( |
Fields | |
---|---|
temp |
The prefix of the resources the system should use for temporary storage. The system will append the suffix "/temp-{JOBNAME} to this resource prefix, where {JOBNAME} is the value of the jobName field. The resulting bucket and object prefix is used as the prefix of the resources used to store temporary data needed during the job execution. NOTE: This will override the value in taskrunnerSettings. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object} |
cluster |
The type of cluster manager API to use. If unknown or unspecified, the service will attempt to choose a reasonable default. This should be in the form of the API service name, e.g. "compute.googleapis.com". |
experiments[] |
The list of experiments to enable. This field should be used for SDK related experiments and not for service related experiments. The proper field for service related experiments is serviceOptions. |
service |
Optional. The list of service options to enable. This field should be used for service related experiments only. These experiments, when graduating to GA, should be replaced by dedicated fields or become default (i.e. always on). |
service |
Optional. If set, contains the Cloud KMS key identifier used to encrypt data at rest, AKA a Customer Managed Encryption Key (CMEK). Format: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY |
worker |
The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers. |
user |
A description of the process that generated the request. |
version |
A structure describing which components and their versions of the service are required in order to run the job. |
dataset |
Optional. The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset} |
sdk |
The Cloud Dataflow SDK pipeline options specified by the user. These options are passed through the service and are used to recreate the SDK pipeline options on the worker in a language agnostic and platform independent way. |
internal |
Experimental settings. An object containing fields of an arbitrary type. An additional field |
service |
Optional. Identity to run virtual machines as. Defaults to the default account. |
flex |
Optional. Which Flexible Resource Scheduling mode to run in. |
worker |
Optional. The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with workerZone. If neither workerRegion nor workerZone is specified, default to the control plane's region. |
worker |
Optional. The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with workerRegion. If neither workerRegion nor workerZone is specified, a zone in the control plane's region is chosen based on available capacity. |
shuffle |
Output only. The shuffle mode used for the job. |
debug |
Optional. Any debugging options to be supplied to the job. |
use |
Output only. Whether the job uses the Streaming Engine resource-based billing model. |
streaming |
Optional. Specifies the Streaming Engine message processing guarantees. Reduces cost and latency but might result in duplicate messages committed to storage. Designed to run simple mapping streaming ETL jobs at the lowest cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use case. For more information, see Set the pipeline streaming mode. |
WorkerPool
Describes one particular pool of Cloud Dataflow workers to be instantiated by the Cloud Dataflow service in order to perform the computations required by a job. Note that a workflow job may use multiple pools, in order to match the various computational requirements of the various stages of the job.
JSON representation |
---|
{ "kind": string, "numWorkers": integer, "packages": [ { object ( |
Fields | |
---|---|
kind |
The kind of the worker pool; currently only |
num |
Number of Google Compute Engine workers in this pool needed to execute the job. If zero or unspecified, the service will attempt to choose a reasonable default. |
packages[] |
Packages to be installed on workers. |
default |
The default package set to install. This allows the service to select a default set of packages which are useful to worker harnesses written in a particular language. |
machine |
Machine type (e.g. "n1-standard-1"). If empty or unspecified, the service will attempt to choose a reasonable default. |
teardown |
Sets the policy for determining when to turndown worker pool. Allowed values are: If the workers are not torn down by the service, they will continue to run and use Google Compute Engine VM resources in the user's project until they are explicitly terminated by the user. Because of this, Google recommends using the If unknown or unspecified, the service will attempt to choose a reasonable default. |
disk |
Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
disk |
Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default. |
disk |
Fully qualified source image for disks. |
zone |
Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default. |
taskrunner |
Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field. |
on |
The action to take on host maintenance, as defined by the Google Compute Engine API. |
data |
Data disks that are used by a VM in this workflow. |
metadata |
Metadata to set on the Google Compute Engine VMs. |
autoscaling |
Settings for autoscaling of this WorkerPool. |
pool |
Extra arguments for this worker pool. An object containing fields of an arbitrary type. An additional field |
network |
Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". |
subnetwork |
Subnetwork to which VMs will be assigned, if desired. Expected to be of the form "regions/REGION/subnetworks/SUBNETWORK". |
worker |
Required. Docker container image that executes the Cloud Dataflow worker harness, residing in Google Container Registry. Deprecated for the Fn API path. Use sdkHarnessContainerImages instead. |
num |
The number of threads per worker harness. If empty or unspecified, the service will choose a number of threads (according to the number of cores on the selected machine type for batch, or 1 by convention for streaming). |
ip |
Configuration for VM IPs. |
sdk |
Set of SDK harness containers needed to execute this pipeline. This will only be set in the Fn API path. For non-cross-language pipelines this should have only one entry. Cross-language pipelines will have two or more entries. |
Package
The packages that must be installed in order for a worker to run the steps of the Cloud Dataflow job that will be assigned to its worker pool.
This is the mechanism by which the Cloud Dataflow SDK causes code to be loaded onto the workers. For example, the Cloud Dataflow Java SDK might use this to install jars containing the user's code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run.
JSON representation |
---|
{ "name": string, "location": string } |
Fields | |
---|---|
name |
The name of the package. |
location |
The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/ |
DefaultPackageSet
The default set of packages to be staged on a pool of workers.
Enums | |
---|---|
DEFAULT_PACKAGE_SET_UNKNOWN |
The default set of packages to stage is unknown, or unspecified. |
DEFAULT_PACKAGE_SET_NONE |
Indicates that no packages should be staged at the worker unless explicitly specified by the job. |
DEFAULT_PACKAGE_SET_JAVA |
Stage packages typically useful to workers written in Java. |
DEFAULT_PACKAGE_SET_PYTHON |
Stage packages typically useful to workers written in Python. |
TeardownPolicy
Specifies what happens to a resource when a Cloud Dataflow google.dataflow.v1beta3.Job
has completed.
Enums | |
---|---|
TEARDOWN_POLICY_UNKNOWN |
The teardown policy isn't specified, or is unknown. |
TEARDOWN_ALWAYS |
Always teardown the resource. |
TEARDOWN_ON_SUCCESS |
Teardown the resource on success. This is useful for debugging failures. |
TEARDOWN_NEVER |
Never teardown the resource. This is useful for debugging and development. |
TaskRunnerSettings
Taskrunner configuration settings.
JSON representation |
---|
{
"taskUser": string,
"taskGroup": string,
"oauthScopes": [
string
],
"baseUrl": string,
"dataflowApiVersion": string,
"parallelWorkerSettings": {
object ( |
Fields | |
---|---|
task |
The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root". |
task |
The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel". |
oauth |
The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API. |
base |
The base URL for the taskrunner to use when accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
dataflow |
The API version of endpoint, e.g. "v1b3" |
parallel |
The settings to pass to the parallel worker harness. |
base |
The location on the worker for task-specific subdirectories. |
continue |
Whether to continue taskrunner if an exception is hit. |
log |
Whether to send taskrunner log info to Google Compute Engine VM serial console. |
alsologtostderr |
Whether to also send taskrunner log info to stderr. |
log |
Indicates where to put logs. If this is not specified, the logs will not be uploaded. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object} |
log |
The directory on the VM to store logs. |
temp |
The prefix of the resources the taskrunner should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object} |
harness |
The command to launch the worker harness. |
workflow |
The file to store the workflow in. |
commandlines |
The file to store preprocessing commands in. |
vm |
The ID string of the VM. |
language |
The suggested backend language. |
streaming |
The streaming worker main class name. |
WorkerSettings
Provides data to pass through to the worker harness.
JSON representation |
---|
{ "baseUrl": string, "reportingEnabled": boolean, "servicePath": string, "shuffleServicePath": string, "workerId": string, "tempStoragePrefix": string } |
Fields | |
---|---|
base |
The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/" |
reporting |
Whether to send work progress updates to the service. |
service |
The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects". |
shuffle |
The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1". |
worker |
The ID of the worker running this pipeline. |
temp |
The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object} |
Disk
Describes the data disk used by a workflow job.
JSON representation |
---|
{ "sizeGb": integer, "diskType": string, "mountPoint": string } |
Fields | |
---|---|
size |
Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default. |
disk |
Disk storage type, as defined by Google Compute Engine. This must be a disk type appropriate to the project and zone in which the workers will run. If unknown or unspecified, the service will attempt to choose a reasonable default. For example, the standard persistent disk type is a resource name typically ending in "pd-standard". If SSD persistent disks are available, the resource name typically ends with "pd-ssd". The actual valid values are defined the Google Compute Engine API, not by the Cloud Dataflow API; consult the Google Compute Engine documentation for more information about determining the set of available disk types for a particular project and zone. Google Compute Engine Disk types are local to a particular project in a particular zone, and so the resource name will typically look something like this: compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard |
mount |
Directory in a VM where disk is mounted. |
AutoscalingSettings
Settings for WorkerPool autoscaling.
JSON representation |
---|
{
"algorithm": enum ( |
Fields | |
---|---|
algorithm |
The algorithm to use for autoscaling. |
max |
The maximum number of workers to cap scaling at. |
AutoscalingAlgorithm
Specifies the algorithm used to determine the number of worker processes to run at any given point in time, based on the amount of data left to process, the number of workers, and how quickly existing workers are processing data.
Enums | |
---|---|
AUTOSCALING_ALGORITHM_UNKNOWN |
The algorithm is unknown, or unspecified. |
AUTOSCALING_ALGORITHM_NONE |
Disable autoscaling. |
AUTOSCALING_ALGORITHM_BASIC |
Increase worker count over time to reduce job execution time. |
WorkerIPAddressConfiguration
Specifies how to allocate IP addresses to worker machines. You can also use pipeline options to specify whether Dataflow workers use external IP addresses.
Enums | |
---|---|
WORKER_IP_UNSPECIFIED |
The configuration is unknown, or unspecified. |
WORKER_IP_PUBLIC |
Workers should have public IP addresses. |
WORKER_IP_PRIVATE |
Workers should have private IP addresses. |
SdkHarnessContainerImage
Defines an SDK harness container for executing Dataflow pipelines.
JSON representation |
---|
{ "containerImage": string, "useSingleCorePerContainer": boolean, "environmentId": string, "capabilities": [ string ] } |
Fields | |
---|---|
container |
A docker container image that resides in Google Container Registry. |
use |
If true, recommends the Dataflow service to use only one core per SDK container instance with this image. If false (or unset) recommends using more than one core per SDK container instance with this image for efficiency. Note that Dataflow service may choose to override this property if needed. |
environment |
Environment ID for the Beam runner API proto Environment that corresponds to the current SDK Harness. |
capabilities[] |
The set of capabilities enumerated in the above Environment proto. See also beam_runner_api.proto |
FlexResourceSchedulingGoal
Specifies the resource to optimize for in Flexible Resource Scheduling.
Enums | |
---|---|
FLEXRS_UNSPECIFIED |
Run in the default mode. |
FLEXRS_SPEED_OPTIMIZED |
Optimize for lower execution time. |
FLEXRS_COST_OPTIMIZED |
Optimize for lower cost. |
ShuffleMode
Specifies the shuffle mode used by a google.dataflow.v1beta3.Job
, which determines the approach data is shuffled during processing. More details in: https://cloud.google.com/dataflow/docs/guides/deploying-a-pipeline#dataflow-shuffle
Enums | |
---|---|
SHUFFLE_MODE_UNSPECIFIED |
Shuffle mode information is not available. |
VM_BASED |
Shuffle is done on the worker VMs. |
SERVICE_BASED |
Shuffle is done on the service side. |
DebugOptions
Describes any options that have an effect on the debugging of pipelines.
JSON representation |
---|
{
"enableHotKeyLogging": boolean,
"dataSampling": {
object ( |
Fields | |
---|---|
enable |
Optional. When true, enables the logging of the literal hot key to the user's Cloud Logging. |
data |
Configuration options for sampling elements from a running pipeline. |
DataSamplingConfig
Configuration options for sampling elements.
JSON representation |
---|
{
"behaviors": [
enum ( |
Fields | |
---|---|
behaviors[] |
List of given sampling behaviors to enable. For example, specifying behaviors = [ALWAYS_ON] samples in-flight elements but does not sample exceptions. Can be used to specify multiple behaviors like, behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and exception sampling. If DISABLED is in the list, then sampling will be disabled and ignore the other given behaviors. Ordering does not matter. |
DataSamplingBehavior
The following enum defines what to sample for a running job.
Enums | |
---|---|
DATA_SAMPLING_BEHAVIOR_UNSPECIFIED |
If given, has no effect on sampling behavior. Used as an unknown or unset sentinel value. |
DISABLED |
When given, disables element sampling. Has same behavior as not setting the behavior. |
ALWAYS_ON |
When given, enables sampling in-flight from all PCollections. |
EXCEPTIONS |
When given, enables sampling input elements when a user-defined DoFn causes an exception. |
StreamingMode
Specifies the Streaming Engine message processing guarantees. Reduces cost and latency but might result in duplicate messages written to storage. Designed to run simple mapping streaming ETL jobs at the lowest cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use case. For more information, see Set the pipeline streaming mode.
Enums | |
---|---|
STREAMING_MODE_UNSPECIFIED |
Run in the default mode. |
STREAMING_MODE_EXACTLY_ONCE |
In this mode, message deduplication is performed against persistent state to make sure each message is processed and committed to storage exactly once. |
STREAMING_MODE_AT_LEAST_ONCE |
Message deduplication is not performed. Messages might be processed multiple times, and the results are applied multiple times. Note: Setting this value also enables Streaming Engine and Streaming Engine resource-based billing. |
Step
Defines a particular step within a Cloud Dataflow job.
A job consists of multiple steps, each of which performs some specific operation as part of the overall job. Data is typically passed from one step to another as part of the job.
Note: The properties of this object are not stable and might change.
Here's an example of a sequence of steps which together implement a Map-Reduce job:
Read a collection of data from some source, parsing the collection's elements.
sql.validate the elements.
Apply a user-defined function to map each element to some value and extract an element-specific key value.
Group elements with the same key into a single element with that key, transforming a multiply-keyed collection into a uniquely-keyed collection.
Write the elements out to some data sink.
Note that the Cloud Dataflow service may be used to run many different types of jobs, not just Map-Reduce.
JSON representation |
---|
{ "kind": string, "name": string, "properties": { object } } |
Fields | |
---|---|
kind |
The kind of step in the Cloud Dataflow job. |
name |
The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job. |
properties |
Named properties associated with the step. Each kind of predefined step has its own required set of properties. Must be provided on Create. Only retrieved with JOB_VIEW_ALL. |
JobState
Describes the overall state of a google.dataflow.v1beta3.Job
.
Enums | |
---|---|
JOB_STATE_UNKNOWN |
The job's run state isn't specified. |
JOB_STATE_STOPPED |
JOB_STATE_STOPPED indicates that the job has not yet started to run. |
JOB_STATE_RUNNING |
JOB_STATE_RUNNING indicates that the job is currently running. |
JOB_STATE_DONE |
JOB_STATE_DONE indicates that the job has successfully completed. This is a terminal job state. This state may be set by the Cloud Dataflow service, as a transition from JOB_STATE_RUNNING . It may also be set via a Cloud Dataflow jobs.update call, if the job has not yet reached a terminal state. |
JOB_STATE_FAILED |
JOB_STATE_FAILED indicates that the job has failed. This is a terminal job state. This state may only be set by the Cloud Dataflow service, and only as a transition from JOB_STATE_RUNNING . |
JOB_STATE_CANCELLED |
JOB_STATE_CANCELLED indicates that the job has been explicitly cancelled. This is a terminal job state. This state may only be set via a Cloud Dataflow jobs.update call, and only if the job has not yet reached another terminal state. |
JOB_STATE_UPDATED |
JOB_STATE_UPDATED indicates that the job was successfully updated, meaning that this job was stopped and another job was started, inheriting state from this one. This is a terminal job state. This state may only be set by the Cloud Dataflow service, and only as a transition from JOB_STATE_RUNNING . |
JOB_STATE_DRAINING |
JOB_STATE_DRAINING indicates that the job is in the process of draining. A draining job has stopped pulling from its input sources and is processing any data that remains in-flight. This state may be set via a Cloud Dataflow jobs.update call, but only as a transition from JOB_STATE_RUNNING . Jobs that are draining may only transition to JOB_STATE_DRAINED , JOB_STATE_CANCELLED , or JOB_STATE_FAILED . |
JOB_STATE_DRAINED |
JOB_STATE_DRAINED indicates that the job has been drained. A drained job terminated by stopping pulling from its input sources and processing any data that remained in-flight when draining was requested. This state is a terminal state, may only be set by the Cloud Dataflow service, and only as a transition from JOB_STATE_DRAINING . |
JOB_STATE_PENDING |
JOB_STATE_PENDING indicates that the job has been created but is not yet running. Jobs that are pending may only transition to JOB_STATE_RUNNING , or JOB_STATE_FAILED . |
JOB_STATE_CANCELLING |
JOB_STATE_CANCELLING indicates that the job has been explicitly cancelled and is in the process of stopping. Jobs that are cancelling may only transition to JOB_STATE_CANCELLED or JOB_STATE_FAILED . |
JOB_STATE_QUEUED |
JOB_STATE_QUEUED indicates that the job has been created but is being delayed until launch. Jobs that are queued may only transition to JOB_STATE_PENDING or JOB_STATE_CANCELLED . |
JOB_STATE_RESOURCE_CLEANING_UP |
JOB_STATE_RESOURCE_CLEANING_UP indicates that the batch job's associated resources are currently being cleaned up after a successful run. Currently, this is an opt-in feature, please reach out to Cloud support team if you are interested. |
JobExecutionInfo
Additional information about how a Cloud Dataflow job will be executed that isn't contained in the submitted job.
JSON representation |
---|
{
"stages": {
string: {
object ( |
Fields | |
---|---|
stages |
A mapping from each stage to the information about that stage. |
JobExecutionStageInfo
Contains information about how a particular google.dataflow.v1beta3.Step
will be executed.
JSON representation |
---|
{ "stepName": [ string ] } |
Fields | |
---|---|
step |
The steps associated with the execution stage. Note that stages may have several steps, and that a given step might be run by more than one stage. |
PipelineDescription
A descriptive representation of submitted pipeline as well as the executed form. This data is provided by the Dataflow service for ease of visualizing the pipeline and interpreting Dataflow provided metrics.
JSON representation |
---|
{ "originalPipelineTransform": [ { object ( |
Fields | |
---|---|
original |
Description of each transform in the pipeline and collections between them. |
execution |
Description of each stage of execution of the pipeline. |
display |
Pipeline level display data. |
step |
A hash value of the submitted pipeline portable graph step names if exists. |
TransformSummary
Description of the type, names/ids, and input/outputs for a transform.
JSON representation |
---|
{ "kind": enum ( |
Fields | |
---|---|
kind |
Type of transform. |
id |
SDK generated id of this transform instance. |
name |
User provided name for this transform instance. |
display |
Transform-specific display data. |
output |
User names for all collection outputs to this transform. |
input |
User names for all collection inputs to this transform. |
KindType
Type of transform or stage operation.
Enums | |
---|---|
UNKNOWN_KIND |
Unrecognized transform type. |
PAR_DO_KIND |
ParDo transform. |
GROUP_BY_KEY_KIND |
Group By Key transform. |
FLATTEN_KIND |
Flatten transform. |
READ_KIND |
Read transform. |
WRITE_KIND |
Write transform. |
CONSTANT_KIND |
Constructs from a constant value, such as with Create.of. |
SINGLETON_KIND |
Creates a Singleton view of a collection. |
SHUFFLE_KIND |
Opening or closing a shuffle session, often as part of a GroupByKey. |
DisplayData
Data provided with a pipeline or transform to provide descriptive info.
JSON representation |
---|
{ "key": string, "namespace": string, "shortStrValue": string, "url": string, "label": string, // Union field |
Fields | |
---|---|
key |
The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system. |
namespace |
The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to specially handle the data and perform custom rendering. |
short |
A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the shortStrValue and com.mypackage.MyDoFn as the java_class_name value. shortStrValue can be displayed and java_class_name_value will be displayed as a tooltip. |
url |
An optional full URL. |
label |
An optional label to display in a dax UI for the element. |
Union field Value . Various value types which can be used for display data. Only one will be set. Value can be only one of the following: |
|
str |
Contains value if the data is of string type. |
int64 |
Contains value if the data is of int64 type. |
float |
Contains value if the data is of float type. |
java |
Contains value if the data is of java class type. |
timestamp |
Contains value if the data is of timestamp type. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
duration |
Contains value if the data is of duration type. A duration in seconds with up to nine fractional digits, ending with ' |
bool |
Contains value if the data is of a boolean type. |
ExecutionStageSummary
Description of the composing transforms, names/ids, and input/outputs of a stage of execution. Some composing transforms and sources may have been generated by the Dataflow service during execution planning.
JSON representation |
---|
{ "name": string, "id": string, "kind": enum ( |
Fields | |
---|---|
name |
Dataflow service generated name for this stage. |
id |
Dataflow service generated id for this stage. |
kind |
Type of transform this stage is executing. |
input |
Input sources for this stage. |
output |
Output sources for this stage. |
prerequisite |
Other stages that must complete before this stage can run. |
component |
Transforms that comprise this execution stage. |
component |
Collections produced and consumed by component transforms of this stage. |
StageSource
Description of an input or output of an execution stage.
JSON representation |
---|
{ "userName": string, "name": string, "originalTransformOrCollection": string, "sizeBytes": string } |
Fields | |
---|---|
user |
Human-readable name for this source; may be user or system generated. |
name |
Dataflow service generated name for this source. |
original |
User name for the original user transform or collection with which this source is most closely associated. |
size |
Size of the source, if measurable. |
ComponentTransform
Description of a transform executed as part of an execution stage.
JSON representation |
---|
{ "userName": string, "name": string, "originalTransform": string } |
Fields | |
---|---|
user |
Human-readable name for this transform; may be user or system generated. |
name |
Dataflow service generated name for this source. |
original |
User name for the original user transform with which this transform is most closely associated. |
ComponentSource
Description of an interstitial value between transforms in an execution stage.
JSON representation |
---|
{ "userName": string, "name": string, "originalTransformOrCollection": string } |
Fields | |
---|---|
user |
Human-readable name for this transform; may be user or system generated. |
name |
Dataflow service generated name for this source. |
original |
User name for the original user transform or collection with which this source is most closely associated. |
ExecutionStageState
A message describing the state of a particular execution stage.
JSON representation |
---|
{
"executionStageName": string,
"executionStageState": enum ( |
Fields | |
---|---|
execution |
The name of the execution stage. |
execution |
Executions stage states allow the same set of values as JobState. |
current |
The time at which the stage transitioned to this state. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
JobMetadata
Metadata available primarily for filtering jobs. Will be included in the ListJob response and Job SUMMARY view.
JSON representation |
---|
{ "sdkVersion": { object ( |
Fields | |
---|---|
sdk |
The SDK version used to run the job. |
spanner |
Identification of a Spanner source used in the Dataflow job. |
bigquery |
Identification of a BigQuery source used in the Dataflow job. |
big |
Identification of a Cloud Bigtable source used in the Dataflow job. |
pubsub |
Identification of a Pub/Sub source used in the Dataflow job. |
file |
Identification of a File source used in the Dataflow job. |
datastore |
Identification of a Datastore source used in the Dataflow job. |
user |
List of display properties to help UI filter jobs. |
SdkVersion
The version of the SDK used to run the job.
JSON representation |
---|
{ "version": string, "versionDisplayName": string, "sdkSupportStatus": enum ( |
Fields | |
---|---|
version |
The version of the SDK used to run the job. |
version |
A readable string describing the version of the SDK. |
sdk |
The support status for this SDK version. |
bugs[] |
Output only. Known bugs found in this SDK version. |
SdkSupportStatus
The support status of the SDK used to run the job.
Enums | |
---|---|
UNKNOWN |
Cloud Dataflow is unaware of this version. |
SUPPORTED |
This is a known version of an SDK, and is supported. |
STALE |
A newer version of the SDK family exists, and an update is recommended. |
DEPRECATED |
This version of the SDK is deprecated and will eventually be unsupported. |
UNSUPPORTED |
Support for this SDK version has ended and it should no longer be used. |
SdkBug
A bug found in the Dataflow SDK.
JSON representation |
---|
{ "type": enum ( |
Fields | |
---|---|
type |
Output only. Describes the impact of this SDK bug. |
severity |
Output only. How severe the SDK bug is. |
uri |
Output only. Link to more information on the bug. |
Type
Nature of the issue, ordered from least severe to most. Other bug types may be added to this list in the future.
Enums | |
---|---|
TYPE_UNSPECIFIED |
Unknown issue with this SDK. |
GENERAL |
Catch-all for SDK bugs that don't fit in the below categories. |
PERFORMANCE |
Using this version of the SDK may result in degraded performance. |
DATALOSS |
Using this version of the SDK may cause data loss. |
Severity
Indicates the severity of the bug. Other severities may be added to this list in the future.
Enums | |
---|---|
SEVERITY_UNSPECIFIED |
A bug of unknown severity. |
NOTICE |
A minor bug that that may reduce reliability or performance for some jobs. Impact will be minimal or non-existent for most jobs. |
WARNING |
A bug that has some likelihood of causing performance degradation, data loss, or job failures. |
SEVERE |
A bug with extremely significant impact. Jobs may fail erroneously, performance may be severely degraded, and data loss may be very likely. |
SpannerIODetails
Metadata for a Spanner connector used by the job.
JSON representation |
---|
{ "projectId": string, "instanceId": string, "databaseId": string } |
Fields | |
---|---|
project |
ProjectId accessed in the connection. |
instance |
InstanceId accessed in the connection. |
database |
DatabaseId accessed in the connection. |
BigQueryIODetails
Metadata for a BigQuery connector used by the job.
JSON representation |
---|
{ "table": string, "dataset": string, "projectId": string, "query": string } |
Fields | |
---|---|
table |
Table accessed in the connection. |
dataset |
Dataset accessed in the connection. |
project |
Project accessed in the connection. |
query |
Query used to access data in the connection. |
BigTableIODetails
Metadata for a Cloud Bigtable connector used by the job.
JSON representation |
---|
{ "projectId": string, "instanceId": string, "tableId": string } |
Fields | |
---|---|
project |
ProjectId accessed in the connection. |
instance |
InstanceId accessed in the connection. |
table |
TableId accessed in the connection. |
PubSubIODetails
Metadata for a Pub/Sub connector used by the job.
JSON representation |
---|
{ "topic": string, "subscription": string } |
Fields | |
---|---|
topic |
Topic accessed in the connection. |
subscription |
Subscription used in the connection. |
FileIODetails
Metadata for a File connector used by the job.
JSON representation |
---|
{ "filePattern": string } |
Fields | |
---|---|
file |
File Pattern used to access files by the connector. |
DatastoreIODetails
Metadata for a Datastore connector used by the job.
JSON representation |
---|
{ "namespace": string, "projectId": string } |
Fields | |
---|---|
namespace |
Namespace used in the connection. |
project |
ProjectId accessed in the connection. |
RuntimeUpdatableParams
Additional job parameters that can only be updated during runtime using the projects.jobs.update method. These fields have no effect when specified during job creation.
JSON representation |
---|
{ "maxNumWorkers": integer, "minNumWorkers": integer, "workerUtilizationHint": number } |
Fields | |
---|---|
max |
The maximum number of workers to cap autoscaling at. This field is currently only supported for Streaming Engine jobs. |
min |
The minimum number of workers to scale down to. This field is currently only supported for Streaming Engine jobs. |
worker |
Target worker utilization, compared against the aggregate utilization of the worker pool by autoscaler, to determine upscaling and downscaling when absent other constraints such as backlog. For more information, see Update an existing pipeline. |
ServiceResources
Resources used by the Dataflow Service to run the job.
JSON representation |
---|
{ "zones": [ string ] } |
Fields | |
---|---|
zones[] |
Output only. List of Cloud Zones being used by the Dataflow Service for this job. Example: us-central1-c |
Methods |
|
---|---|
|
List the jobs of a project across all regions. |
|
Creates a Cloud Dataflow job. |
|
Gets the state of the specified Cloud Dataflow job. |
|
Request the job status. |
|
List the jobs of a project. |
|
Snapshot the state of a streaming job. |
|
Updates the state of an existing Cloud Dataflow job. |