pub struct FieldProfile {
pub field: String,
pub present: u64,
pub total: u64,
pub distinct_values: Vec<String>,
pub value_overflow: bool,
}Expand description
Per-field statistics gathered over a set of events in scope (a cluster or a whole corpus). A small standalone type so other corpus-analysis features can build on the same profile rather than duplicating the aggregation.
Fields§
§field: StringDot-joined field path.
present: u64Events in scope that contained the field.
total: u64Total events in scope.
distinct_values: Vec<String>Distinct string values seen, sorted, capped for memory. Empty when values were not retained (the online path) or the field is not string-valued.
value_overflow: boolTrue when more distinct values were seen than retained, or a value was
dropped as too long/sensitive to retain, so distinct_values is not the
full set and the field is not a safe value marker.
Implementations§
Source§impl FieldProfile
impl FieldProfile
Sourcepub fn prevalence(&self) -> f64
pub fn prevalence(&self) -> f64
Fraction of in-scope events that contained the field (0.0-1.0).
Sourcepub fn cardinality(&self) -> usize
pub fn cardinality(&self) -> usize
Number of distinct retained string values.
Trait Implementations§
Source§impl Clone for FieldProfile
impl Clone for FieldProfile
Source§fn clone(&self) -> FieldProfile
fn clone(&self) -> FieldProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FieldProfile
impl Debug for FieldProfile
impl Eq for FieldProfile
Source§impl PartialEq for FieldProfile
impl PartialEq for FieldProfile
impl StructuralPartialEq for FieldProfile
Auto Trait Implementations§
impl Freeze for FieldProfile
impl RefUnwindSafe for FieldProfile
impl Send for FieldProfile
impl Sync for FieldProfile
impl Unpin for FieldProfile
impl UnsafeUnpin for FieldProfile
impl UnwindSafe for FieldProfile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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
Compare self to
key and return true if they are equal.