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.
931 932 933 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 931 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
929 930 931 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 929 def behaviors @behaviors end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
936 937 938 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 936 def update!(**args) @behaviors = args[:behaviors] if args.key?(:behaviors) end |