pub struct ProfileMetrics {
pub profile_id: String,
pub total_samples: usize,
pub avg_confidence: f64,
pub detection_rate: f64,
pub disagreement_count: usize,
pub low_confidence_count: usize,
pub low_confidence_rate: f64,
}Expand description
Per-profile aggregate metrics computed from backtest samples.
Metrics help identify profiles that underperform compared to baseline, enabling data-driven decisions about rule rollout and SLO adjustments.
Fields§
§profile_id: StringProfile identifier.
total_samples: usizeTotal cases analyzed for this profile.
avg_confidence: f64Average confidence score across all samples (0.0–1.0).
detection_rate: f64Percentage of samples where this profile detected suspicious activity.
disagreement_count: usizeNumber of disagreement cases where this profile diverged from other profiles.
low_confidence_count: usizeNumber of cases with confidence < 0.5 (potentially false positives).
low_confidence_rate: f64Ratio of cases with low confidence (0.0–1.0).
Trait Implementations§
Source§impl Clone for ProfileMetrics
impl Clone for ProfileMetrics
Source§fn clone(&self) -> ProfileMetrics
fn clone(&self) -> ProfileMetrics
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 ProfileMetrics
impl Debug for ProfileMetrics
Source§impl<'de> Deserialize<'de> for ProfileMetrics
impl<'de> Deserialize<'de> for ProfileMetrics
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 ProfileMetrics
impl PartialEq for ProfileMetrics
Source§impl Serialize for ProfileMetrics
impl Serialize for ProfileMetrics
impl StructuralPartialEq for ProfileMetrics
Auto Trait Implementations§
impl Freeze for ProfileMetrics
impl RefUnwindSafe for ProfileMetrics
impl Send for ProfileMetrics
impl Sync for ProfileMetrics
impl Unpin for ProfileMetrics
impl UnsafeUnpin for ProfileMetrics
impl UnwindSafe for ProfileMetrics
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