Class PickTimeSeriesFilter (2.12.0)

PickTimeSeriesFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

NameDescription
ranking_method google.cloud.monitoring_dashboard_v1.types.PickTimeSeriesFilter.Method
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.
num_time_series int
How many time series to allow to pass through the filter.
direction google.cloud.monitoring_dashboard_v1.types.PickTimeSeriesFilter.Direction
How to use the ranking to select time series that pass through the filter.

Classes

Direction

Direction(value)

Describes the ranking directions.

Values: DIRECTION_UNSPECIFIED (0): Not allowed. You must specify a different Direction if you specify a PickTimeSeriesFilter. TOP (1): Pass the highest num_time_series ranking inputs. BOTTOM (2): Pass the lowest num_time_series ranking inputs.

Method

Method(value)

The value reducers that can be applied to a PickTimeSeriesFilter.

Values: METHOD_UNSPECIFIED (0): Not allowed. You must specify a different Method if you specify a PickTimeSeriesFilter. METHOD_MEAN (1): Select the mean of all values. METHOD_MAX (2): Select the maximum value. METHOD_MIN (3): Select the minimum value. METHOD_SUM (4): Compute the sum of all values. METHOD_LATEST (5): Select the most recent value.