Class: Google::Apis::DataflowV1b3::DataflowGaugeValue

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

The gauge value of a metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataflowGaugeValue

Returns a new instance of DataflowGaugeValue.



1139
1140
1141
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1139

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

Instance Attribute Details

#measured_timeString

The timestamp when the gauge was recorded. Corresponds to the JSON property measuredTime

Returns:

  • (String)


1132
1133
1134
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1132

def measured_time
  @measured_time
end

#valueFixnum

The value of the gauge. Corresponds to the JSON property value

Returns:

  • (Fixnum)


1137
1138
1139
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1137

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1144
1145
1146
1147
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1144

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