Class: Google::Apis::MonitoringV1::TimeSeriesQuery
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::TimeSeriesQuery
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/monitoring_v1/classes.rb,
generated/google/apis/monitoring_v1/representations.rb,
generated/google/apis/monitoring_v1/representations.rb
Overview
TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API.
Instance Attribute Summary collapse
-
#time_series_filter ⇒ Google::Apis::MonitoringV1::TimeSeriesFilter
A filter that defines a subset of time series data that is displayed in a widget.
-
#time_series_filter_ratio ⇒ Google::Apis::MonitoringV1::TimeSeriesFilterRatio
A pair of time series filters that define a ratio computation.
-
#unit_override ⇒ String
The unit of data contained in fetched time series.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeSeriesQuery
constructor
A new instance of TimeSeriesQuery.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TimeSeriesQuery
Returns a new instance of TimeSeriesQuery.
1026 1027 1028 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1026 def initialize(**args) update!(**args) end |
Instance Attribute Details
#time_series_filter ⇒ Google::Apis::MonitoringV1::TimeSeriesFilter
A filter that defines a subset of time series data that is displayed in a
widget. Time series data is fetched using the ListTimeSeries method.
Corresponds to the JSON property timeSeriesFilter
1010 1011 1012 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1010 def time_series_filter @time_series_filter end |
#time_series_filter_ratio ⇒ Google::Apis::MonitoringV1::TimeSeriesFilterRatio
A pair of time series filters that define a ratio computation. The output time
series is the pair-wise division of each aligned element from the numerator
and denominator time series.
Corresponds to the JSON property timeSeriesFilterRatio
1017 1018 1019 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1017 def time_series_filter_ratio @time_series_filter_ratio end |
#unit_override ⇒ String
The unit of data contained in fetched time series. If non-empty, this unit
will override any unit that accompanies fetched data. The format is the same
as the unit field in MetricDescriptor.
Corresponds to the JSON property unitOverride
1024 1025 1026 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1024 def unit_override @unit_override end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1031 1032 1033 1034 1035 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1031 def update!(**args) @time_series_filter = args[:time_series_filter] if args.key?(:time_series_filter) @time_series_filter_ratio = args[:time_series_filter_ratio] if args.key?(:time_series_filter_ratio) @unit_override = args[:unit_override] if args.key?(:unit_override) end |