Class: Google::Apis::CloudmonitoringV2beta2::TimeseriesPoint
- Inherits:
-
Object
- Object
- Google::Apis::CloudmonitoringV2beta2::TimeseriesPoint
- Defined in:
- generated/google/apis/cloudmonitoring_v2beta2/classes.rb,
generated/google/apis/cloudmonitoring_v2beta2/representations.rb,
generated/google/apis/cloudmonitoring_v2beta2/representations.rb
Overview
When writing time series, TimeseriesPoint should be used instead of Timeseries, to enforce single point for each time series in the timeseries.write request.
Instance Attribute Summary collapse
-
#point ⇒ Google::Apis::CloudmonitoringV2beta2::Point
Point is a single point in a time series.
-
#timeseries_desc ⇒ Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptor
TimeseriesDescriptor identifies a single time series.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeseriesPoint
constructor
A new instance of TimeseriesPoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ TimeseriesPoint
Returns a new instance of TimeseriesPoint.
620 621 622 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 620 def initialize(**args) update!(**args) end |
Instance Attribute Details
#point ⇒ Google::Apis::CloudmonitoringV2beta2::Point
Point is a single point in a time series. It consists of a start time, an end
time, and a value.
Corresponds to the JSON property point
613 614 615 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 613 def point @point end |
#timeseries_desc ⇒ Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptor
TimeseriesDescriptor identifies a single time series.
Corresponds to the JSON property timeseriesDesc
618 619 620 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 618 def timeseries_desc @timeseries_desc end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
625 626 627 628 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 625 def update!(**args) @point = args[:point] if args.key?(:point) @timeseries_desc = args[:timeseries_desc] if args.key?(:timeseries_desc) end |