Class: Google::Apis::DataflowV1b3::Point

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

A point in the timeseries.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Point

Returns a new instance of Point.



4040
4041
4042
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4040

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

Instance Attribute Details

#timeString

The timestamp of the point. Corresponds to the JSON property time

Returns:

  • (String)


4033
4034
4035
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4033

def time
  @time
end

#valueFloat

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

Returns:

  • (Float)


4038
4039
4040
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4038

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4045
4046
4047
4048
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4045

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