Class: Google::Apis::CloudmonitoringV2beta2::Timeseries

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 monitoring data is organized as metrics and stored as data points that are recorded over time. Each data point represents information like the CPU utilization of your virtual machine. A historical record of these data points is called a time series.

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

Returns a new instance of Timeseries.



537
538
539
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 537

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

Instance Attribute Details

#pointsArray<Google::Apis::CloudmonitoringV2beta2::Point>

The data points of this time series. The points are listed in order of their end timestamp, from younger to older. Corresponds to the JSON property points



530
531
532
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 530

def points
  @points
end

#timeseries_descGoogle::Apis::CloudmonitoringV2beta2::TimeseriesDescriptor

TimeseriesDescriptor identifies a single time series. Corresponds to the JSON property timeseriesDesc



535
536
537
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 535

def timeseries_desc
  @timeseries_desc
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



542
543
544
545
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 542

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