Class: Google::Apis::CloudmonitoringV2beta2::Timeseries
- Inherits:
-
Object
- Object
- Google::Apis::CloudmonitoringV2beta2::Timeseries
- 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
-
#points ⇒ Array<Google::Apis::CloudmonitoringV2beta2::Point>
The data points of this time series.
-
#timeseries_desc ⇒ Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptor
TimeseriesDescriptor identifies a single time series.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Timeseries
constructor
A new instance of Timeseries.
-
#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) ⇒ 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
#points ⇒ Array<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_desc ⇒ Google::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 |