Class: Google::Apis::DataflowV1b3::DistributionUpdate

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DistributionUpdate

Returns a new instance of DistributionUpdate.


1163
1164
1165
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1163

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#countGoogle::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


1129
1130
1131
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1129

def count
  @count
end

#histogramGoogle::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


1138
1139
1140
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1138

def histogram
  @histogram
end

#maxGoogle::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


1144
1145
1146
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1144

def max
  @max
end

#minGoogle::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


1150
1151
1152
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1150

def min
  @min
end

#sumGoogle::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


1156
1157
1158
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1156

def sum
  @sum
end

#sum_of_squaresFloat

Use a double since the sum of squares is likely to overflow int64. Corresponds to the JSON property sumOfSquares

Returns:

  • (Float)

1161
1162
1163
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1161

def sum_of_squares
  @sum_of_squares
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1168
1169
1170
1171
1172
1173
1174
1175
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1168

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