pub struct PatternAnalyzer { /* private fields */ }Expand description
Pattern analyzer
Implementations§
Source§impl PatternAnalyzer
impl PatternAnalyzer
Sourcepub fn new(config: AnalyzerConfig) -> Self
pub fn new(config: AnalyzerConfig) -> Self
Create new pattern analyzer
Sourcepub fn record_query(
&mut self,
operation: impl Into<String>,
fields: Vec<String>,
)
pub fn record_query( &mut self, operation: impl Into<String>, fields: Vec<String>, )
Record a query pattern
Sourcepub fn record_query_at(
&mut self,
operation: impl Into<String>,
fields: Vec<String>,
timestamp: SystemTime,
)
pub fn record_query_at( &mut self, operation: impl Into<String>, fields: Vec<String>, timestamp: SystemTime, )
Record query at specific time
Sourcepub fn get_top_patterns(&self, n: usize) -> Vec<PatternOccurrence>
pub fn get_top_patterns(&self, n: usize) -> Vec<PatternOccurrence>
Get top N patterns by frequency
Sourcepub fn analyze_trends(&self) -> Vec<PatternTrend>
pub fn analyze_trends(&self) -> Vec<PatternTrend>
Analyze trends for all patterns
Sourcepub fn get_top_field_combinations(&self, n: usize) -> Vec<FieldCombination>
pub fn get_top_field_combinations(&self, n: usize) -> Vec<FieldCombination>
Get top field combinations
Sourcepub fn get_temporal_patterns(&self) -> Vec<TemporalPattern>
pub fn get_temporal_patterns(&self) -> Vec<TemporalPattern>
Get temporal patterns
Find correlated patterns
Sourcepub fn pattern_count(&self) -> usize
pub fn pattern_count(&self) -> usize
Get pattern count
Auto Trait Implementations§
impl Freeze for PatternAnalyzer
impl RefUnwindSafe for PatternAnalyzer
impl Send for PatternAnalyzer
impl Sync for PatternAnalyzer
impl Unpin for PatternAnalyzer
impl UnsafeUnpin for PatternAnalyzer
impl UnwindSafe for PatternAnalyzer
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more