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.
-
#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
2834 2835 2836 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2834 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
2809 2810 2811 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2809 def count @count 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
2826 2827 2828 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2826 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
2815 2816 2817 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2815 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
2832 2833 2834 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2832 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
2820 2821 2822 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2820 def sum_of_squares @sum_of_squares end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2839 2840 2841 2842 2843 2844 2845 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2839 def update!(**args) @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) @max = args[:max] if args.key?(:max) @sum = args[:sum] if args.key?(:sum) end |