# Dataflow V1beta3 API - Class Google::Cloud::Dataflow::V1beta3::DataSamplingConfig (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 class Google::Cloud::Dataflow::V1beta3::DataSamplingConfig.

Configuration options for sampling elements.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #behaviors

    def behaviors() -> ::Array<::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior>

**Returns**

- (::Array\<[::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-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.

### #behaviors=

    def behaviors=(value) -> ::Array<::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-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.
**Returns**

- (::Array\<[::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-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.