Class: Google::Apis::MonitoringV1::TimeSeriesQuery
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::TimeSeriesQuery
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v1/classes.rb,
lib/google/apis/monitoring_v1/representations.rb,
lib/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
-
#ops_analytics_query ⇒ Google::Apis::MonitoringV1::OpsAnalyticsQuery
Preview: A query that produces an aggregated response and supporting data.
-
#output_full_duration ⇒ Boolean
(also: #output_full_duration?)
Optional.
-
#prometheus_query ⇒ String
A query used to fetch time series with PromQL.
-
#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.
-
#time_series_query_language ⇒ String
A query used to fetch time series with MQL.
-
#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.
Constructor Details
#initialize(**args) ⇒ TimeSeriesQuery
Returns a new instance of TimeSeriesQuery.
2605 2606 2607 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2605 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ops_analytics_query ⇒ Google::Apis::MonitoringV1::OpsAnalyticsQuery
Preview: A query that produces an aggregated response and supporting data.
This is a preview feature and may be subject to change before final release.
Corresponds to the JSON property opsAnalyticsQuery
2562 2563 2564 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2562 def ops_analytics_query @ops_analytics_query end |
#output_full_duration ⇒ Boolean Also known as: output_full_duration?
Optional. If set, Cloud Monitoring will treat the full query duration as the
alignment period so that there will be only 1 output value.*Note: This could
override the configured alignment period except for the cases where a series
of data points are expected, like - XyChart - Scorecard's spark chart
Corresponds to the JSON property outputFullDuration
2570 2571 2572 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2570 def output_full_duration @output_full_duration end |
#prometheus_query ⇒ String
A query used to fetch time series with PromQL.
Corresponds to the JSON property prometheusQuery
2576 2577 2578 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2576 def prometheus_query @prometheus_query end |
#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 (https://cloud.
google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method.
Corresponds to the JSON property timeSeriesFilter
2583 2584 2585 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2583 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
2590 2591 2592 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2590 def time_series_filter_ratio @time_series_filter_ratio end |
#time_series_query_language ⇒ String
A query used to fetch time series with MQL.
Corresponds to the JSON property timeSeriesQueryLanguage
2595 2596 2597 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2595 def time_series_query_language @time_series_query_language 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 (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.
metricDescriptors) field in MetricDescriptor.
Corresponds to the JSON property unitOverride
2603 2604 2605 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2603 def unit_override @unit_override end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2610 2611 2612 2613 2614 2615 2616 2617 2618 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 2610 def update!(**args) @ops_analytics_query = args[:ops_analytics_query] if args.key?(:ops_analytics_query) @output_full_duration = args[:output_full_duration] if args.key?(:output_full_duration) @prometheus_query = args[:prometheus_query] if args.key?(:prometheus_query) @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) @time_series_query_language = args[:time_series_query_language] if args.key?(:time_series_query_language) @unit_override = args[:unit_override] if args.key?(:unit_override) end |