# Dataflow V1beta3 API - Module Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior (v0.17.0)

0.17.0 (latest) 0.16.0 0.15.0 0.14.1 0.13.1 0.12.1 0.11.0 0.10.0 0.9.1 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Dataflow V1beta3 API module Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior.

The following enum defines what to sample for a running job.

## Constants

### DATA_SAMPLING_BEHAVIOR_UNSPECIFIED

**value:** 0  
If given, has no effect on sampling behavior. Used as an unknown or unset
sentinel value.

### DISABLED

**value:** 1  
When given, disables element sampling. Has same behavior as not setting
the behavior.

### ALWAYS_ON

**value:** 2  
When given, enables sampling in-flight from all PCollections.

### EXCEPTIONS

**value:** 3  
When given, enables sampling input elements when a user-defined DoFn
causes an exception.