Enum google_api_proto::google::monitoring::dashboard::v1::aggregation::Reducer
source · #[repr(i32)]pub enum Reducer {
Show 14 variants
ReduceNone = 0,
ReduceMean = 1,
ReduceMin = 2,
ReduceMax = 3,
ReduceSum = 4,
ReduceStddev = 5,
ReduceCount = 6,
ReduceCountTrue = 7,
ReduceCountFalse = 15,
ReduceFractionTrue = 8,
ReducePercentile99 = 9,
ReducePercentile95 = 10,
ReducePercentile50 = 11,
ReducePercentile05 = 12,
}
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.
Variants§
ReduceNone = 0
No cross-time series reduction. The output of the Aligner
is
returned.
ReduceMean = 1
Reduce by computing the mean value across time series for each
alignment period. This reducer is valid for
[DELTA][google.api.MetricDescriptor.MetricKind.DELTA] and
[GAUGE][google.api.MetricDescriptor.MetricKind.GAUGE] metrics with
numeric or distribution values. The value_type
of the output is
[DOUBLE][google.api.MetricDescriptor.ValueType.DOUBLE].
ReduceMin = 2
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 = 3
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 = 4
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 = 5
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 = 6
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 = 7
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 = 15
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 = 8
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 = 9
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 = 10
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 = 11
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 = 12
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
.
Implementations§
source§impl Reducer
impl Reducer
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Reducer
impl Ord for Reducer
source§impl PartialEq for Reducer
impl PartialEq for Reducer
source§impl PartialOrd for Reducer
impl PartialOrd for Reducer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Reducer
impl TryFrom<i32> for Reducer
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for Reducer
impl Eq for Reducer
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request