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



3648
3649
3650
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3648

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



3646
3647
3648
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3646

def count
  @count
end

#log_bucketsArray<Google::Apis::DataflowV1b3::LogBucket>

(Optional) Logarithmic histogram of values. Each log may be in no more than one bucket. Order does not matter. Corresponds to the JSON property logBuckets



3640
3641
3642
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3640

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



3634
3635
3636
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3634

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



3617
3618
3619
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3617

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



3628
3629
3630
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3628

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)


3622
3623
3624
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3622

def sum_of_squares
  @sum_of_squares
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3653
3654
3655
3656
3657
3658
3659
3660
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3653

def update!(**args)
  @min = args[:min] if args.key?(:min)
  @sum_of_squares = args[:sum_of_squares] if args.key?(:sum_of_squares)
  @sum = args[:sum] if args.key?(:sum)
  @max = args[:max] if args.key?(:max)
  @log_buckets = args[:log_buckets] if args.key?(:log_buckets)
  @count = args[:count] if args.key?(:count)
end