Class: Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesRequest
- 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
-
#common_labels ⇒ Hash<String,String>
The label's name.
-
#timeseries ⇒ Array<Google::Apis::CloudmonitoringV2beta2::TimeseriesPoint>
Provide time series specific labels and the data points for each time series.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WriteTimeseriesRequest
constructor
A new instance of WriteTimeseriesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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_labels ⇒ Hash<String,String>
The label's name.
Corresponds to the JSON property commonLabels
638 639 640 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 638 def common_labels @common_labels end |
#timeseries ⇒ Array<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 |