class Google::Apis::MonitoringV1::PickTimeSeriesFilter

Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter.

Attributes

direction[RW]

How to use the ranking to select time series that pass through the filter. Corresponds to the JSON property `direction` @return [String]

num_time_series[RW]

How many time series to allow to pass through the filter. Corresponds to the JSON property `numTimeSeries` @return [Fixnum]

ranking_method[RW]

ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series. Corresponds to the JSON property `rankingMethod` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v1/classes.rb, line 824
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/monitoring_v1/classes.rb, line 829
def update!(**args)
  @direction = args[:direction] if args.key?(:direction)
  @num_time_series = args[:num_time_series] if args.key?(:num_time_series)
  @ranking_method = args[:ranking_method] if args.key?(:ranking_method)
end