pub struct ForwardStats {
pub events_forwarded: u64,
pub events_dropped_by_level: u64,
pub events_dropped_by_overflow: u64,
pub batches_sent: u64,
pub batches_failed: u64,
pub last_success_unix: Option<u64>,
pub last_error: Option<String>,
}Expand description
Counters describing what the forwarder has done since the daemon started.
Deliberately cheap to maintain and safe to lose: these are for answering “is it working?”, not for accounting. They reset when the daemon restarts.
Fields§
§events_forwarded: u64Events accepted by the endpoint.
events_dropped_by_level: u64Events dropped locally for being below the configured minimum level.
events_dropped_by_overflow: u64Events dropped because the in-memory queue was full — the endpoint could not keep up and the forwarder chose to bound its memory rather than block.
batches_sent: u64Batches the endpoint accepted in full.
batches_failed: u64Batches abandoned after exhausting their retries.
last_success_unix: Option<u64>Unix seconds of the last batch the endpoint accepted.
last_error: Option<String>Most recent delivery error, retained so status can explain a stalled flow.
Trait Implementations§
Source§impl Clone for ForwardStats
impl Clone for ForwardStats
Source§fn clone(&self) -> ForwardStats
fn clone(&self) -> ForwardStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for ForwardStats
impl ComposeSchema for ForwardStats
Source§impl Debug for ForwardStats
impl Debug for ForwardStats
Source§impl Default for ForwardStats
impl Default for ForwardStats
Source§fn default() -> ForwardStats
fn default() -> ForwardStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ForwardStats
impl<'de> Deserialize<'de> for ForwardStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ForwardStats
Source§impl PartialEq for ForwardStats
impl PartialEq for ForwardStats
Source§impl Serialize for ForwardStats
impl Serialize for ForwardStats
impl StructuralPartialEq for ForwardStats
Auto Trait Implementations§
impl Freeze for ForwardStats
impl RefUnwindSafe for ForwardStats
impl Send for ForwardStats
impl Sync for ForwardStats
impl Unpin for ForwardStats
impl UnsafeUnpin for ForwardStats
impl UnwindSafe for ForwardStats
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
impl<'de, T> BorrowedRpcObject<'de> for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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