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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<R, D> DepsPresent<D> for R
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging