pub struct PerfdataSet<'a> { /* private fields */ }
Expand description
A PerfdataSet is a collection of Perfdata.
It can be built via PerfdataSet::new()
, from Iterators with Item=<Perfdata>
, or from a
Vec<Perfdata>
.
Implementations§
Source§impl<'a> PerfdataSet<'a>
impl<'a> PerfdataSet<'a>
Sourcepub fn data(&self) -> impl Iterator<Item = &Perfdata<'a>>
pub fn data(&self) -> impl Iterator<Item = &Perfdata<'a>>
Returns an iterator over all contained Perfdata
Sourcepub fn critical(&self) -> impl Iterator<Item = &Perfdata<'a>>
pub fn critical(&self) -> impl Iterator<Item = &Perfdata<'a>>
Returns an iterator over all Perfdata
which exceeds their critical threshold
Sourcepub fn has_critical(&self) -> bool
pub fn has_critical(&self) -> bool
Returns true if any of the contained Perfdata
has a critical Threshold
assigned
and the value exceeds the Threshold
Sourcepub fn warning(&self) -> impl Iterator<Item = &Perfdata<'a>>
pub fn warning(&self) -> impl Iterator<Item = &Perfdata<'a>>
Returns an iterator over all Perfdata
which exceeds their warning threshold
Sourcepub fn has_warning(&self) -> bool
pub fn has_warning(&self) -> bool
Returns true if any of the contained Perfdata
has a warning Threshold
assigned
and the value exceeds the Threshold
Sourcepub fn status(&self) -> MonitoringStatus
pub fn status(&self) -> MonitoringStatus
Returns the MonitoringStatus reflecting the worst status based on Thresholds Critical is worse than Warning is worse than OK
Trait Implementations§
Source§impl<'a> Debug for PerfdataSet<'a>
impl<'a> Debug for PerfdataSet<'a>
Source§impl<'a> Default for PerfdataSet<'a>
impl<'a> Default for PerfdataSet<'a>
Source§fn default() -> PerfdataSet<'a>
fn default() -> PerfdataSet<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> Display for PerfdataSet<'a>
impl<'a> Display for PerfdataSet<'a>
Source§impl<'a> FromIterator<Perfdata<'a>> for PerfdataSet<'a>
impl<'a> FromIterator<Perfdata<'a>> for PerfdataSet<'a>
Source§impl<'a> PartialEq for PerfdataSet<'a>
impl<'a> PartialEq for PerfdataSet<'a>
Source§impl<'a> TryFrom<&'a str> for PerfdataSet<'a>
impl<'a> TryFrom<&'a str> for PerfdataSet<'a>
impl<'a> StructuralPartialEq for PerfdataSet<'a>
Auto Trait Implementations§
impl<'a> Freeze for PerfdataSet<'a>
impl<'a> RefUnwindSafe for PerfdataSet<'a>
impl<'a> Send for PerfdataSet<'a>
impl<'a> Sync for PerfdataSet<'a>
impl<'a> Unpin for PerfdataSet<'a>
impl<'a> UnwindSafe for PerfdataSet<'a>
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