#[non_exhaustive]pub enum Reducer {
Show 15 variants
ReduceNone,
ReduceMean,
ReduceMin,
ReduceMax,
ReduceSum,
ReduceStddev,
ReduceCount,
ReduceCountTrue,
ReduceCountFalse,
ReduceFractionTrue,
ReducePercentile99,
ReducePercentile95,
ReducePercentile50,
ReducePercentile05,
UnknownValue(UnknownValue),
}Expand description
A Reducer operation describes how to aggregate data points from multiple time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ReduceNone
No cross-time series reduction. The output of the Aligner is
returned.
ReduceMean
Reduce by computing the mean value across time series for each
alignment period. This reducer is valid for
DELTA and
GAUGE metrics with
numeric or distribution values. The value_type of the output is
DOUBLE.
ReduceMin
Reduce by computing the minimum value across time series for each
alignment period. This reducer is valid for DELTA and GAUGE metrics
with numeric values. The value_type of the output is the same as the
value_type of the input.
ReduceMax
Reduce by computing the maximum value across time series for each
alignment period. This reducer is valid for DELTA and GAUGE metrics
with numeric values. The value_type of the output is the same as the
value_type of the input.
ReduceSum
Reduce by computing the sum across time series for each
alignment period. This reducer is valid for DELTA and GAUGE metrics
with numeric and distribution values. The value_type of the output is
the same as the value_type of the input.
ReduceStddev
Reduce by computing the standard deviation across time series
for each alignment period. This reducer is valid for DELTA and
GAUGE metrics with numeric or distribution values. The value_type
of the output is DOUBLE.
ReduceCount
Reduce by computing the number of data points across time series
for each alignment period. This reducer is valid for DELTA and
GAUGE metrics of numeric, Boolean, distribution, and string
value_type. The value_type of the output is INT64.
ReduceCountTrue
Reduce by computing the number of True-valued data points across time
series for each alignment period. This reducer is valid for DELTA and
GAUGE metrics of Boolean value_type. The value_type of the output
is INT64.
ReduceCountFalse
Reduce by computing the number of False-valued data points across time
series for each alignment period. This reducer is valid for DELTA and
GAUGE metrics of Boolean value_type. The value_type of the output
is INT64.
ReduceFractionTrue
Reduce by computing the ratio of the number of True-valued data points
to the total number of data points for each alignment period. This
reducer is valid for DELTA and GAUGE metrics of Boolean value_type.
The output value is in the range [0.0, 1.0] and has value_type
DOUBLE.
ReducePercentile99
Reduce by computing the 99th
percentile of data points
across time series for each alignment period. This reducer is valid for
GAUGE and DELTA metrics of numeric and distribution type. The value
of the output is DOUBLE.
ReducePercentile95
Reduce by computing the 95th
percentile of data points
across time series for each alignment period. This reducer is valid for
GAUGE and DELTA metrics of numeric and distribution type. The value
of the output is DOUBLE.
ReducePercentile50
Reduce by computing the 50th
percentile of data points
across time series for each alignment period. This reducer is valid for
GAUGE and DELTA metrics of numeric and distribution type. The value
of the output is DOUBLE.
ReducePercentile05
Reduce by computing the 5th
percentile of data points
across time series for each alignment period. This reducer is valid for
GAUGE and DELTA metrics of numeric and distribution type. The value
of the output is DOUBLE.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using Reducer::value or Reducer::name.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reducer
impl<'de> Deserialize<'de> for Reducer
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
impl StructuralPartialEq for Reducer
Auto Trait Implementations§
impl Freeze for Reducer
impl RefUnwindSafe for Reducer
impl Send for Reducer
impl Sync for Reducer
impl Unpin for Reducer
impl UnwindSafe for Reducer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.