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
920 921 922 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 920 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
895 896 897 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 895 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
901 902 903 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 901 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
907 908 909 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 907 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
913 914 915 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 913 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
918 919 920 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 918 def sum_of_squares @sum_of_squares end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
925 926 927 928 929 930 931 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 925 def update!(**args) @count = args[:count] if args.key?(:count) @max = args[:max] if args.key?(:max) @min = args[:min] if args.key?(:min) @sum = args[:sum] if args.key?(:sum) @sum_of_squares = args[:sum_of_squares] if args.key?(:sum_of_squares) end |