pub struct HookSnapshot {Show 14 fields
pub delivered: u64,
pub retried: u64,
pub ingress: u64,
pub overflow: u64,
pub rejected: u64,
pub exhausted: u64,
pub shutdown: u64,
pub outcome_unknown_shutdown: u64,
pub filtered: u64,
pub ingress_depth: usize,
pub ingress_capacity: usize,
pub queue_depth: usize,
pub queue_capacity: usize,
pub in_flight: usize,
}Expand description
One hook’s operational numbers at an instant.
The losses are kept apart rather than summed into one “failed” counter: an endpoint refusing an event, a queue overflowing, and a shutdown cutting a drain short call for three different responses from whoever is looking.
How these are exported is the application’s business — this crate has no opinion about Prometheus — so the field names are the whole contract.
Fields§
§delivered: u64§retried: u64§ingress: u64§overflow: u64§rejected: u64§exhausted: u64§shutdown: u64§outcome_unknown_shutdown: u64§filtered: u64§ingress_depth: usize§ingress_capacity: usizeWhat an operator configured, rather than something measured.
queue_depth: usize§queue_capacity: usizeWhat an operator configured, rather than something measured.
in_flight: usizeTrait Implementations§
Source§impl Clone for HookSnapshot
impl Clone for HookSnapshot
impl Copy for HookSnapshot
Source§impl Debug for HookSnapshot
impl Debug for HookSnapshot
Source§impl Default for HookSnapshot
impl Default for HookSnapshot
impl Eq for HookSnapshot
Source§impl PartialEq for HookSnapshot
impl PartialEq for HookSnapshot
impl StructuralPartialEq for HookSnapshot
Auto Trait Implementations§
impl Forget for HookSnapshot
impl Freeze for HookSnapshot
impl Move for HookSnapshot
impl RefUnwindSafe for HookSnapshot
impl Send for HookSnapshot
impl Sync for HookSnapshot
impl Unpin for HookSnapshot
impl UnsafeUnpin for HookSnapshot
impl UnwindSafe for HookSnapshot
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