pub struct CollectorIssue {
pub source: Box<str>,
pub message: Box<str>,
pub occurrences: u32,
pub last_seen: Option<Duration>,
}Expand description
A recurring collector problem, aggregated rather than logged per occurrence.
§9.2 forbids logging one error per vanished process, and the same reasoning applies on screen: a repeated failure is one row with a count, not a flood.
Fields§
§source: Box<str>Where it came from, e.g. "/proc/diskstats".
message: Box<str>What went wrong.
occurrences: u32How many times it has happened.
last_seen: Option<Duration>How long ago it last happened.
Trait Implementations§
Source§impl Clone for CollectorIssue
impl Clone for CollectorIssue
Source§fn clone(&self) -> CollectorIssue
fn clone(&self) -> CollectorIssue
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 Debug for CollectorIssue
impl Debug for CollectorIssue
Source§impl PartialEq for CollectorIssue
impl PartialEq for CollectorIssue
impl StructuralPartialEq for CollectorIssue
Auto Trait Implementations§
impl Freeze for CollectorIssue
impl RefUnwindSafe for CollectorIssue
impl Send for CollectorIssue
impl Sync for CollectorIssue
impl Unpin for CollectorIssue
impl UnsafeUnpin for CollectorIssue
impl UnwindSafe for CollectorIssue
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