# Class DataSamplingBehavior (0.14.0)

0.14.0 (latest) 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.17 0.7.0 0.6.2 0.5.5 0.4.1 0.3.1 0.2.0 0.1.5

    DataSamplingBehavior(value)

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

| ## Enums ||
|---|---|
| **Name** | **Description** |
| `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. |