Class: Google::Apis::MonitoringV3::TimeSeriesDescriptor

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

A descriptor for the labels and points in a time series.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeSeriesDescriptor

Returns a new instance of TimeSeriesDescriptor.



4816
4817
4818
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4816

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

Instance Attribute Details

#label_descriptorsArray<Google::Apis::MonitoringV3::LabelDescriptor>

Descriptors for the labels. Corresponds to the JSON property labelDescriptors



4809
4810
4811
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4809

def label_descriptors
  @label_descriptors
end

#point_descriptorsArray<Google::Apis::MonitoringV3::ValueDescriptor>

Descriptors for the point data value columns. Corresponds to the JSON property pointDescriptors



4814
4815
4816
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4814

def point_descriptors
  @point_descriptors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4821
4822
4823
4824
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4821

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