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

Inherits:
Object
  • Object
show all
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 representation of an integer mean metric contribution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IntegerMean

Returns a new instance of IntegerMean.



2279
2280
2281
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2279

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



2271
2272
2273
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2271

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



2277
2278
2279
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2277

def sum
  @sum
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2284
2285
2286
2287
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2284

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