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.



4791
4792
4793
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4791

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



4784
4785
4786
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4784

def label_values
  @label_values
end

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

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



4789
4790
4791
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4789

def point_data
  @point_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4796
4797
4798
4799
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4796

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