Class: Google::Apis::DataflowV1b3::DataflowGaugeValue
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::DataflowGaugeValue
- 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
-
#measured_time ⇒ String
The timestamp when the gauge was recorded.
-
#value ⇒ Fixnum
The value of the gauge.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataflowGaugeValue
constructor
A new instance of DataflowGaugeValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_time ⇒ String
The timestamp when the gauge was recorded.
Corresponds to the JSON property measuredTime
1070 1071 1072 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1070 def measured_time @measured_time end |
#value ⇒ Fixnum
The value of the gauge.
Corresponds to the JSON property value
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 |