Class: Google::Apis::DataflowV1b3::DistributionUpdate
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::DistributionUpdate
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataflow_v1b3/classes.rb,
generated/google/apis/dataflow_v1b3/representations.rb,
generated/google/apis/dataflow_v1b3/representations.rb
Overview
A metric value representing a distribution.
Instance Attribute Summary collapse
-
#count ⇒ Google::Apis::DataflowV1b3::SplitInt64
A representation of an int64, n, that is immune to precision loss when encoded in JSON.
-
#log_buckets ⇒ Array<Google::Apis::DataflowV1b3::LogBucket>
(Optional) Logarithmic histogram of values.
-
#max ⇒ Google::Apis::DataflowV1b3::SplitInt64
A representation of an int64, n, that is immune to precision loss when encoded in JSON.
-
#min ⇒ Google::Apis::DataflowV1b3::SplitInt64
A representation of an int64, n, that is immune to precision loss when encoded in JSON.
-
#sum ⇒ Google::Apis::DataflowV1b3::SplitInt64
A representation of an int64, n, that is immune to precision loss when encoded in JSON.
-
#sum_of_squares ⇒ Float
Use a double since the sum of squares is likely to overflow int64.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DistributionUpdate
constructor
A new instance of DistributionUpdate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DistributionUpdate
Returns a new instance of DistributionUpdate
3078 3079 3080 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3078 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Google::Apis::DataflowV1b3::SplitInt64
A representation of an int64, n, that is immune to precision loss when
encoded in JSON.
Corresponds to the JSON property count
3059 3060 3061 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3059 def count @count end |
#log_buckets ⇒ Array<Google::Apis::DataflowV1b3::LogBucket>
(Optional) Logarithmic histogram of values.
Each log may be in no more than one bucket. Order does not matter.
Corresponds to the JSON property logBuckets
3053 3054 3055 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3053 def log_buckets @log_buckets end |
#max ⇒ Google::Apis::DataflowV1b3::SplitInt64
A representation of an int64, n, that is immune to precision loss when
encoded in JSON.
Corresponds to the JSON property max
3047 3048 3049 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3047 def max @max end |
#min ⇒ Google::Apis::DataflowV1b3::SplitInt64
A representation of an int64, n, that is immune to precision loss when
encoded in JSON.
Corresponds to the JSON property min
3065 3066 3067 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3065 def min @min end |
#sum ⇒ Google::Apis::DataflowV1b3::SplitInt64
A representation of an int64, n, that is immune to precision loss when
encoded in JSON.
Corresponds to the JSON property sum
3076 3077 3078 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3076 def sum @sum end |
#sum_of_squares ⇒ Float
Use a double since the sum of squares is likely to overflow int64.
Corresponds to the JSON property sumOfSquares
3070 3071 3072 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3070 def sum_of_squares @sum_of_squares end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3083 3084 3085 3086 3087 3088 3089 3090 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3083 def update!(**args) @max = args[:max] if args.key?(:max) @log_buckets = args[:log_buckets] if args.key?(:log_buckets) @count = args[:count] if args.key?(:count) @min = args[:min] if args.key?(:min) @sum_of_squares = args[:sum_of_squares] if args.key?(:sum_of_squares) @sum = args[:sum] if args.key?(:sum) end |