pub struct LoopGuardTripDay {
pub day: String,
pub model_name: String,
pub gglib_version: String,
pub mode: LoopGuardMode,
pub scanned: u64,
pub trips: u64,
pub loops: u64,
pub stagnations: u64,
pub sessions: u64,
}Expand description
One day of the log for one model, gglib version and mode: how many requests the guard scanned, and how many it acted on — ordinarily some of those, though a trip whose scan was lost has none.
A day the guard scanned but never tripped is here with trips at zero.
That row is the reading ADR 0011’s criterion is about, so the log is never
read from the trips alone. A trip whose scan was lost is here too, with
scanned at zero.
Fields§
§day: StringThe UTC day, as YYYY-MM-DD.
model_name: StringThe model the requests named, bounded.
gglib_version: StringThe gglib version that scanned them.
mode: LoopGuardModeThe mode they were scanned under: note or refuse.
scanned: u64Requests the guard scanned — the denominator.
trips: u64The requests it acted on: noted under note, refused under
refuse. A decision, not a delivery: a noted request can still fail
to reach the model.
loops: u64Of the trips, the ones LoopGuardTrip::Loop raised.
stagnations: u64Of the trips, the ones LoopGuardTrip::Stagnation raised.
sessions: u64Distinct session ids among this row’s trips — the client’s
x-gglib-session-id, or the one gglib derives from the conversation’s
opening when there is none. Per row: a session that trips on two days is
counted on each, so this does not add across rows.
Trait Implementations§
Source§impl Clone for LoopGuardTripDay
impl Clone for LoopGuardTripDay
Source§fn clone(&self) -> LoopGuardTripDay
fn clone(&self) -> LoopGuardTripDay
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LoopGuardTripDay
impl Debug for LoopGuardTripDay
Source§impl PartialEq for LoopGuardTripDay
impl PartialEq for LoopGuardTripDay
Source§fn eq(&self, other: &LoopGuardTripDay) -> bool
fn eq(&self, other: &LoopGuardTripDay) -> bool
self and other values to be equal, and is used by ==.