Struct monitord::units::ServiceStats
source · pub struct ServiceStats {Show 16 fields
pub active_enter_timestamp: u64,
pub active_exit_timestamp: u64,
pub cpuusage_nsec: u64,
pub inactive_exit_timestamp: u64,
pub ioread_bytes: u64,
pub ioread_operations: u64,
pub memory_available: u64,
pub memory_current: u64,
pub nrestarts: u32,
pub processes: u32,
pub restart_usec: u64,
pub state_change_timestamp: u64,
pub status_errno: i32,
pub tasks_current: u64,
pub timeout_clean_usec: u64,
pub watchdog_usec: u64,
}Expand description
Selected subset of metrics collected from systemd OrgFreedesktopSystemd1Service
Fields§
§active_enter_timestamp: u64§active_exit_timestamp: u64§cpuusage_nsec: u64§inactive_exit_timestamp: u64§ioread_bytes: u64§ioread_operations: u64§memory_available: u64§memory_current: u64§nrestarts: u32§processes: u32§restart_usec: u64§state_change_timestamp: u64§status_errno: i32§tasks_current: u64§timeout_clean_usec: u64§watchdog_usec: u64Implementations§
source§impl ServiceStats
impl ServiceStats
sourcepub const FIELD_NAMES_AS_ARRAY: &'static [&'static str] = _
pub const FIELD_NAMES_AS_ARRAY: &'static [&'static str] = _
Generated array of field names for ServiceStats.
Trait Implementations§
source§impl Clone for ServiceStats
impl Clone for ServiceStats
source§fn clone(&self) -> ServiceStats
fn clone(&self) -> ServiceStats
Returns a copy of the value. Read more
1.0.0 · 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 ServiceStats
impl Debug for ServiceStats
source§impl Default for ServiceStats
impl Default for ServiceStats
source§fn default() -> ServiceStats
fn default() -> ServiceStats
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ServiceStats
impl<'de> Deserialize<'de> for ServiceStats
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
source§impl PartialEq<ServiceStats> for ServiceStats
impl PartialEq<ServiceStats> for ServiceStats
source§fn eq(&self, other: &ServiceStats) -> bool
fn eq(&self, other: &ServiceStats) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ServiceStats
impl Serialize for ServiceStats
impl Eq for ServiceStats
impl StructuralEq for ServiceStats
impl StructuralPartialEq for ServiceStats
Auto Trait Implementations§
impl RefUnwindSafe for ServiceStats
impl Send for ServiceStats
impl Sync for ServiceStats
impl Unpin for ServiceStats
impl UnwindSafe for ServiceStats
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.