pub struct InsightGenerator { /* private fields */ }Expand description
Insight generator
Implementations§
Source§impl InsightGenerator
impl InsightGenerator
pub fn new(config: InsightConfig) -> Self
Sourcepub fn set_baseline_rps(&mut self, rps: f64)
pub fn set_baseline_rps(&mut self, rps: f64)
Set baseline RPS for traffic spike detection
Sourcepub fn generate(&self, snapshot: &AnalyticsSnapshot) -> Vec<Insight>
pub fn generate(&self, snapshot: &AnalyticsSnapshot) -> Vec<Insight>
Generate insights from analytics snapshot
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InsightGenerator
impl RefUnwindSafe for InsightGenerator
impl Send for InsightGenerator
impl Sync for InsightGenerator
impl Unpin for InsightGenerator
impl UnwindSafe for InsightGenerator
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