Class: Google::Apis::MonitoringV3::TimeSeriesData

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb

Overview

Represents the values of a time series associated with a TimeSeriesDescriptor.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeSeriesData

Returns a new instance of TimeSeriesData.



4781
4782
4783
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4781

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

Instance Attribute Details

#label_valuesArray<Google::Apis::MonitoringV3::LabelValue>

The values of the labels in the time series identifier, given in the same order as the label_descriptors field of the TimeSeriesDescriptor associated with this object. Each value must have a value of the type given in the corresponding entry of label_descriptors. Corresponds to the JSON property labelValues



4774
4775
4776
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4774

def label_values
  @label_values
end

#point_dataArray<Google::Apis::MonitoringV3::PointData>

The points in the time series. Corresponds to the JSON property pointData



4779
4780
4781
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4779

def point_data
  @point_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4786
4787
4788
4789
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4786

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