Skip to main content

LoopGuardTripDay

Struct LoopGuardTripDay 

Source
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: String

The UTC day, as YYYY-MM-DD.

§model_name: String

The model the requests named, bounded.

§gglib_version: String

The gglib version that scanned them.

§mode: LoopGuardMode

The mode they were scanned under: note or refuse.

§scanned: u64

Requests the guard scanned — the denominator.

§trips: u64

The 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: u64

Of the trips, the ones LoopGuardTrip::Loop raised.

§stagnations: u64

Of the trips, the ones LoopGuardTrip::Stagnation raised.

§sessions: u64

Distinct 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

Source§

fn clone(&self) -> LoopGuardTripDay

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LoopGuardTripDay

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for LoopGuardTripDay

Source§

fn eq(&self, other: &LoopGuardTripDay) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for LoopGuardTripDay

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for LoopGuardTripDay

Source§

impl StructuralPartialEq for LoopGuardTripDay

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more