Class: Google::Apis::MonitoringV1::TimeSeriesQuery

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeSeriesQuery

Returns a new instance of TimeSeriesQuery.



1195
1196
1197
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1195

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

Instance Attribute Details

#time_series_filterGoogle::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



1173
1174
1175
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1173

def time_series_filter
  @time_series_filter
end

#time_series_filter_ratioGoogle::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



1180
1181
1182
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1180

def time_series_filter_ratio
  @time_series_filter_ratio
end

#time_series_query_languageString

A query used to fetch time series. Corresponds to the JSON property timeSeriesQueryLanguage

Returns:

  • (String)


1185
1186
1187
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1185

def time_series_query_language
  @time_series_query_language
end

#unit_overrideString

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

Returns:

  • (String)


1193
1194
1195
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1193

def unit_override
  @unit_override
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1200
1201
1202
1203
1204
1205
# File 'generated/google/apis/monitoring_v1/classes.rb', line 1200

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