class Google::Apis::MonitoringV1::TimeSeriesQuery
TimeSeriesQuery
collects the set of supported methods for querying time series data from the Stackdriver metrics API.
Attributes
A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries (cloud. google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) method. Corresponds to the JSON property `timeSeriesFilter` @return [Google::Apis::MonitoringV1::TimeSeriesFilter]
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` @return [Google::Apis::MonitoringV1::TimeSeriesFilterRatio]
A query used to fetch time series. Corresponds to the JSON property `timeSeriesQueryLanguage` @return [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 (cloud.google.com/monitoring/api/ref_v3/rest/v3/projects. metricDescriptors) field in MetricDescriptor. Corresponds to the JSON property `unitOverride` @return [String]
Public Class Methods
# File lib/google/apis/monitoring_v1/classes.rb, line 1453 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/monitoring_v1/classes.rb, line 1458 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) @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