Class: Google::Apis::DataflowV1b3::IntegerGauge

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 temporal values of a variable.

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

Returns a new instance of IntegerGauge.



1716
1717
1718
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1716

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

Instance Attribute Details

#timestampString

The time at which this value was measured. Measured as msecs from epoch. Corresponds to the JSON property timestamp

Returns:

  • (String)


1708
1709
1710
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1708

def timestamp
  @timestamp
end

#valueGoogle::Apis::DataflowV1b3::SplitInt64

A representation of an int64, n, that is immune to precision loss when encoded in JSON. Corresponds to the JSON property value



1714
1715
1716
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1714

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1721
1722
1723
1724
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 1721

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