Class: Google::Apis::DataflowV1b3::Point
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::Point
- 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 point in the timeseries.
Instance Attribute Summary collapse
-
#time ⇒ String
The timestamp of the point.
-
#value ⇒ Float
The value of the point.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Point
constructor
A new instance of Point.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Point
Returns a new instance of Point.
3475 3476 3477 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3475 def initialize(**args) update!(**args) end |
Instance Attribute Details
#time ⇒ String
The timestamp of the point.
Corresponds to the JSON property time
3468 3469 3470 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3468 def time @time end |
#value ⇒ Float
The value of the point.
Corresponds to the JSON property value
3473 3474 3475 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3473 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3480 3481 3482 3483 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3480 def update!(**args) @time = args[:time] if args.key?(:time) @value = args[:value] if args.key?(:value) end |