Class: Google::Apis::CloudmonitoringV2beta2::TimeseriesPoint

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

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

#pointGoogle::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_descGoogle::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