Class: Google::Apis::DataflowV1b3::DataSamplingConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::DataSamplingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb
Overview
Configuration options for sampling elements.
Instance Attribute Summary collapse
-
#behaviors ⇒ Array<String>
List of given sampling behaviors to enable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataSamplingConfig
constructor
A new instance of DataSamplingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataSamplingConfig
Returns a new instance of DataSamplingConfig.
995 996 997 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 995 def initialize(**args) update!(**args) end |
Instance Attribute Details
#behaviors ⇒ Array<String>
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.
Corresponds to the JSON property behaviors
993 994 995 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 993 def behaviors @behaviors end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1000 1001 1002 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1000 def update!(**args) @behaviors = args[:behaviors] if args.key?(:behaviors) end |