pub struct RouterStats { /* private fields */ }Expand description
Counters for router health monitoring.
Tracks the number of entries routed successfully and the number of unrecognized entries. The unknown-entry count is exposed for upload health status — a spike after an MTGA update signals that new event types may need parser support.
Implementations§
Source§impl RouterStats
impl RouterStats
Sourcepub fn routed_count(&self) -> u64
pub fn routed_count(&self) -> u64
Returns the number of entries successfully routed to a parser.
Sourcepub fn unknown_count(&self) -> u64
pub fn unknown_count(&self) -> u64
Returns the number of unrecognized entries (not claimed by any parser).
Sourcepub fn timestamp_failure_count(&self) -> u64
pub fn timestamp_failure_count(&self) -> u64
Returns the number of entries where the timestamp could not be parsed.
Trait Implementations§
Source§impl Debug for RouterStats
impl Debug for RouterStats
Source§impl Default for RouterStats
impl Default for RouterStats
Source§fn default() -> RouterStats
fn default() -> RouterStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RouterStats
impl RefUnwindSafe for RouterStats
impl Send for RouterStats
impl Sync for RouterStats
impl Unpin for RouterStats
impl UnsafeUnpin for RouterStats
impl UnwindSafe for RouterStats
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