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.



1077
1078
1079
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1077

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)


1070
1071
1072
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1070

def measured_time
  @measured_time
end

#valueFixnum

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

Returns:

  • (Fixnum)


1075
1076
1077
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1075

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1082
1083
1084
1085
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1082

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