(::Array<::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.
value (::Array<::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>) — 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Dataflow V1beta3 API - Class Google::Cloud::Dataflow::V1beta3::DataSamplingConfig (v0.13.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.13.1 (latest)](/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig)\n- [0.13.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.13.0/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig)\n- [0.12.1](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.12.1/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig)\n- [0.11.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.11.0/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig)\n- [0.10.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.10.0/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig)\n- [0.9.1](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.9.1/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig)\n- [0.8.2](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.8.2/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig)\n- [0.7.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.7.0/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig)\n- [0.6.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.6.0/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig)\n- [0.5.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.5.0/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig)\n- [0.4.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.4.0/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig)\n- [0.3.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.3.0/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig)\n- [0.2.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.2.0/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig)\n- [0.1.4](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.1.4/Google-Cloud-Dataflow-V1beta3-DataSamplingConfig) \nReference documentation and code samples for the Dataflow V1beta3 API class Google::Cloud::Dataflow::V1beta3::DataSamplingConfig.\n\nConfiguration options for sampling elements. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #behaviors\n\n def behaviors() -\u003e ::Array\u003c::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior](./Google-Cloud-Dataflow-V1beta3-DataSamplingConfig-DataSamplingBehavior)\\\u003e) --- 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.\n\n\n If DISABLED is in the list, then sampling will be disabled and ignore the\n other given behaviors.\n\n Ordering does not matter.\n\n### #behaviors=\n\n def behaviors=(value) -\u003e ::Array\u003c::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior](./Google-Cloud-Dataflow-V1beta3-DataSamplingConfig-DataSamplingBehavior)\\\u003e) --- 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.\n\n\n If DISABLED is in the list, then sampling will be disabled and ignore the\n other given behaviors.\n\nOrdering does not matter. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior](./Google-Cloud-Dataflow-V1beta3-DataSamplingConfig-DataSamplingBehavior)\\\u003e) --- 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.\n\n\n If DISABLED is in the list, then sampling will be disabled and ignore the\n other given behaviors.\n\n Ordering does not matter."]]