# Class DataSamplingConfig (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

    DataSamplingConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Configuration options for sampling elements.

| ## Attribute ||
|---|---|
| **Name** | **Description** |
| `behaviors` | `MutableSequence[https://docs-0cloud-0google-0com.linkedin.net.nz/python/docs/reference/dataflow/latest/google.cloud.dataflow_v1beta3.types.DataSamplingConfig.DataSamplingBehavior]` 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. |

## Classes

### DataSamplingBehavior

    DataSamplingBehavior(value)

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