pub struct CardinalityAggregation { /* private fields */ }
Expand description
A single-value
metrics aggregation that calculates an approximate count of distinct values.
Implementations§
Source§impl CardinalityAggregation
impl CardinalityAggregation
Sourcepub fn precision_threshold(self, precision_threshold: u16) -> Self
pub fn precision_threshold(self, precision_threshold: u16) -> Self
The precision_threshold
options allows to trade memory for accuracy, and defines a unique count below
which counts are expected to be close to accurate. Above this value, counts might become a bit more fuzzy.
The maximum supported value is 40000, thresholds above this number will have the same effect as a threshold
of 40000. The default value is 3000
Trait Implementations§
Source§impl Clone for CardinalityAggregation
impl Clone for CardinalityAggregation
Source§fn clone(&self) -> CardinalityAggregation
fn clone(&self) -> CardinalityAggregation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CardinalityAggregation
impl Debug for CardinalityAggregation
Source§impl From<CardinalityAggregation> for Aggregation
impl From<CardinalityAggregation> for Aggregation
Source§fn from(q: CardinalityAggregation) -> Self
fn from(q: CardinalityAggregation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CardinalityAggregation
impl PartialEq for CardinalityAggregation
Source§impl Serialize for CardinalityAggregation
impl Serialize for CardinalityAggregation
impl StructuralPartialEq for CardinalityAggregation
Auto Trait Implementations§
impl Freeze for CardinalityAggregation
impl RefUnwindSafe for CardinalityAggregation
impl Send for CardinalityAggregation
impl Sync for CardinalityAggregation
impl Unpin for CardinalityAggregation
impl UnwindSafe for CardinalityAggregation
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
Mutably borrows from an owned value. Read more