pub struct MetricsSummary {Show 15 fields
pub total_selections: u64,
pub total_timeouts: u64,
pub total_no_match: u64,
pub by_confidence: HashMap<String, u64>,
pub latency_p50: f64,
pub latency_p95: f64,
pub latency_p99: f64,
pub latency_mean: f64,
pub latency_min: f64,
pub latency_max: f64,
pub by_strategy: HashMap<String, u64>,
pub by_skill: HashMap<SkillName, u64>,
pub trigger_hit_rate: f64,
pub semantic_hit_rate: f64,
pub llm_fallback_rate: f64,
}Expand description
Summary of metrics.
Fields§
§total_selections: u64Total selections.
total_timeouts: u64Total timeouts.
total_no_match: u64Total queries with no match.
by_confidence: HashMap<String, u64>Selections by confidence level.
latency_p50: f64Latency percentiles (in milliseconds).
latency_p95: f64§latency_p99: f64§latency_mean: f64Mean latency (in milliseconds).
latency_min: f64Min/Max latency (in milliseconds).
latency_max: f64§by_strategy: HashMap<String, u64>Per-strategy selection counts.
by_skill: HashMap<SkillName, u64>Per-skill selection counts.
trigger_hit_rate: f64Trigger strategy hit rate (resolved by triggers without needing slower strategies).
semantic_hit_rate: f64Semantic strategy hit rate.
llm_fallback_rate: f64LLM fallback rate.
Trait Implementations§
Source§impl Clone for MetricsSummary
impl Clone for MetricsSummary
Source§fn clone(&self) -> MetricsSummary
fn clone(&self) -> MetricsSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MetricsSummary
impl RefUnwindSafe for MetricsSummary
impl Send for MetricsSummary
impl Sync for MetricsSummary
impl Unpin for MetricsSummary
impl UnsafeUnpin for MetricsSummary
impl UnwindSafe for MetricsSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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