Class: Google::Apis::DataflowV1b3::DistributionUpdate
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::DistributionUpdate
- 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
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.
-
#histogram ⇒ Google::Apis::DataflowV1b3::Histogram
Histogram of value counts for a distribution.
-
#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.
Constructor Details
#initialize(**args) ⇒ DistributionUpdate
Returns a new instance of DistributionUpdate.
1402 1403 1404 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1402 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
1368 1369 1370 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1368 def count @count end |
#histogram ⇒ Google::Apis::DataflowV1b3::Histogram
Histogram of value counts for a distribution. Buckets have an inclusive lower
bound and exclusive upper bound and use "1,2,5 bucketing": The first bucket
range is from [0,1) and all subsequent bucket boundaries are powers of ten
multiplied by 1, 2, or 5. Thus, bucket boundaries are 0, 1, 2, 5, 10, 20, 50,
100, 200, 500, 1000, ... Negative values are not supported.
Corresponds to the JSON property histogram
1377 1378 1379 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1377 def histogram @histogram 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
1383 1384 1385 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1383 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
1389 1390 1391 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1389 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
1395 1396 1397 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1395 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
1400 1401 1402 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1400 def sum_of_squares @sum_of_squares end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1407 1408 1409 1410 1411 1412 1413 1414 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1407 def update!(**args) @count = args[:count] if args.key?(:count) @histogram = args[:histogram] if args.key?(:histogram) @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 |