Class: Google::Apis::DataflowV1b3::IntegerMean

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 representation of an integer mean metric contribution.

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) ⇒ IntegerMean

Returns a new instance of IntegerMean.



1762
1763
1764
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1762

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



1754
1755
1756
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1754

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



1760
1761
1762
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1760

def sum
  @sum
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1767
1768
1769
1770
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1767

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