pub struct Metrics {
pub analyses_count: u64,
pub features_extracted: u64,
pub correlations_computed: u64,
pub predictions_made: u64,
pub errors_count: u64,
pub total_duration_ms: u64,
}Expand description
Metrics collector for aggregating statistics
Fields§
§analyses_count: u64§features_extracted: u64§correlations_computed: u64§predictions_made: u64§errors_count: u64§total_duration_ms: u64Implementations§
Source§impl Metrics
impl Metrics
pub fn new() -> Self
pub fn record_analysis(&mut self, duration_ms: u64)
pub fn record_features(&mut self, count: u64)
pub fn record_correlation(&mut self)
pub fn record_prediction(&mut self)
pub fn record_error(&mut self)
pub fn summary(&self) -> String
pub fn log_summary(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnwindSafe for Metrics
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> 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