Class: Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesRequest

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

The request of cloudmonitoring.timeseries.write

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) ⇒ WriteTimeseriesRequest

Returns a new instance of WriteTimeseriesRequest.



647
648
649
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 647

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

Instance Attribute Details

#common_labelsHash<String,String>

The label's name. Corresponds to the JSON property commonLabels

Returns:

  • (Hash<String,String>)


638
639
640
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 638

def common_labels
  @common_labels
end

#timeseriesArray<Google::Apis::CloudmonitoringV2beta2::TimeseriesPoint>

Provide time series specific labels and the data points for each time series. The labels in timeseries and the common_labels should form a complete list of labels that required by the metric. Corresponds to the JSON property timeseries



645
646
647
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 645

def timeseries
  @timeseries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



652
653
654
655
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 652

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