pub struct SchemaBaseline {
pub numeric_history: BTreeMap<FieldPath, VecDeque<f64>>,
pub list_history: BTreeMap<FieldPath, VecDeque<Vec<String>>>,
pub cardinality_history: BTreeMap<FieldPath, VecDeque<usize>>,
pub schema_id: Option<SchemaId>,
}Expand description
Per-field rolling baseline — the statistical summary the detector compares new observations against.
Fields§
§numeric_history: BTreeMap<FieldPath, VecDeque<f64>>Last N values observed for each numeric field, capped at
StatisticalFieldAnomalyDetector::WINDOW_SIZE.
list_history: BTreeMap<FieldPath, VecDeque<Vec<String>>>Last N ordered lists observed for each list-valued field.
cardinality_history: BTreeMap<FieldPath, VecDeque<usize>>Last N cardinality counts observed for each text-valued
field. Used for AnomalySignal::CardinalityShift.
schema_id: Option<SchemaId>The schema this baseline belongs to.
Trait Implementations§
Source§impl Clone for SchemaBaseline
impl Clone for SchemaBaseline
Source§fn clone(&self) -> SchemaBaseline
fn clone(&self) -> SchemaBaseline
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 SchemaBaseline
impl Debug for SchemaBaseline
Source§impl Default for SchemaBaseline
impl Default for SchemaBaseline
Source§fn default() -> SchemaBaseline
fn default() -> SchemaBaseline
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchemaBaseline
impl<'de> Deserialize<'de> for SchemaBaseline
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SchemaBaseline
impl PartialEq for SchemaBaseline
Source§fn eq(&self, other: &SchemaBaseline) -> bool
fn eq(&self, other: &SchemaBaseline) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SchemaBaseline
impl Serialize for SchemaBaseline
impl StructuralPartialEq for SchemaBaseline
Auto Trait Implementations§
impl Freeze for SchemaBaseline
impl RefUnwindSafe for SchemaBaseline
impl Send for SchemaBaseline
impl Sync for SchemaBaseline
impl Unpin for SchemaBaseline
impl UnsafeUnpin for SchemaBaseline
impl UnwindSafe for SchemaBaseline
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