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.



5035
5036
5037
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5035

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



5028
5029
5030
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5028

def label_values
  @label_values
end

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

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



5033
5034
5035
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5033

def point_data
  @point_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5040
5041
5042
5043
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5040

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