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



857
858
859
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 857

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



844
845
846
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 844

def count
  @count
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



832
833
834
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 832

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



850
851
852
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 850

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



838
839
840
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 838

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)


855
856
857
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 855

def sum_of_squares
  @sum_of_squares
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



862
863
864
865
866
867
868
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 862

def update!(**args)
  @max = args[:max] if args.key?(:max)
  @sum = args[:sum] if args.key?(:sum)
  @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)
end