pub struct InsightConfig {
pub error_rate_warning: f64,
pub error_rate_critical: f64,
pub p99_latency_warning_ms: f64,
pub p99_latency_critical_ms: f64,
pub rate_limit_warning: f64,
pub rate_limit_critical: f64,
pub traffic_spike_multiplier: f64,
pub min_requests: u64,
}Expand description
Configuration for insight detection
Fields§
§error_rate_warning: f64Error rate threshold (percentage)
error_rate_critical: f64§p99_latency_warning_ms: f64Latency thresholds (milliseconds)
p99_latency_critical_ms: f64§rate_limit_warning: f64Rate limit thresholds (percentage of requests limited)
rate_limit_critical: f64§traffic_spike_multiplier: f64Traffic spike threshold (multiplier over average)
min_requests: u64Minimum requests before generating insights
Trait Implementations§
Source§impl Clone for InsightConfig
impl Clone for InsightConfig
Source§fn clone(&self) -> InsightConfig
fn clone(&self) -> InsightConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 InsightConfig
impl Debug for InsightConfig
Source§impl Default for InsightConfig
impl Default for InsightConfig
Source§impl<'de> Deserialize<'de> for InsightConfig
impl<'de> Deserialize<'de> for InsightConfig
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
Auto Trait Implementations§
impl Freeze for InsightConfig
impl RefUnwindSafe for InsightConfig
impl Send for InsightConfig
impl Sync for InsightConfig
impl Unpin for InsightConfig
impl UnwindSafe for InsightConfig
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