Struct google_api_proto::google::monitoring::dashboard::v1::PickTimeSeriesFilter
source · pub struct PickTimeSeriesFilter {
pub ranking_method: i32,
pub num_time_series: i32,
pub direction: i32,
pub interval: Option<Interval>,
}
Expand description
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.
Fields§
§ranking_method: i32
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: i32
How many time series to allow to pass through the filter.
direction: i32
How to use the ranking to select time series that pass through the filter.
interval: Option<Interval>
Select the top N streams/time series within this time interval
Implementations§
source§impl PickTimeSeriesFilter
impl PickTimeSeriesFilter
sourcepub fn ranking_method(&self) -> Method
pub fn ranking_method(&self) -> Method
Returns the enum value of ranking_method
, or the default if the field is set to an invalid enum value.
sourcepub fn set_ranking_method(&mut self, value: Method)
pub fn set_ranking_method(&mut self, value: Method)
Sets ranking_method
to the provided enum value.
sourcepub fn direction(&self) -> Direction
pub fn direction(&self) -> Direction
Returns the enum value of direction
, or the default if the field is set to an invalid enum value.
sourcepub fn set_direction(&mut self, value: Direction)
pub fn set_direction(&mut self, value: Direction)
Sets direction
to the provided enum value.
Trait Implementations§
source§impl Clone for PickTimeSeriesFilter
impl Clone for PickTimeSeriesFilter
source§fn clone(&self) -> PickTimeSeriesFilter
fn clone(&self) -> PickTimeSeriesFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PickTimeSeriesFilter
impl Debug for PickTimeSeriesFilter
source§impl Default for PickTimeSeriesFilter
impl Default for PickTimeSeriesFilter
source§impl Message for PickTimeSeriesFilter
impl Message for PickTimeSeriesFilter
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for PickTimeSeriesFilter
impl PartialEq for PickTimeSeriesFilter
source§fn eq(&self, other: &PickTimeSeriesFilter) -> bool
fn eq(&self, other: &PickTimeSeriesFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PickTimeSeriesFilter
Auto Trait Implementations§
impl Freeze for PickTimeSeriesFilter
impl RefUnwindSafe for PickTimeSeriesFilter
impl Send for PickTimeSeriesFilter
impl Sync for PickTimeSeriesFilter
impl Unpin for PickTimeSeriesFilter
impl UnwindSafe for PickTimeSeriesFilter
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<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