pub struct SystemdUnitStats {Show 25 fields
pub activating_units: u64,
pub active_units: u64,
pub automount_units: u64,
pub device_units: u64,
pub failed_units: u64,
pub inactive_units: u64,
pub jobs_queued: u64,
pub loaded_units: u64,
pub masked_units: u64,
pub mount_units: u64,
pub not_found_units: u64,
pub path_units: u64,
pub scope_units: u64,
pub service_units: u64,
pub slice_units: u64,
pub socket_units: u64,
pub target_units: u64,
pub timer_units: u64,
pub timer_persistent_units: u64,
pub timer_remain_after_elapse: u64,
pub total_units: u64,
pub service_stats: HashMap<String, ServiceStats>,
pub timer_stats: HashMap<String, TimerStats>,
pub unit_states: HashMap<String, UnitStates>,
pub collection_timings: UnitsCollectionTimings,
}Expand description
Aggregated systemd unit statistics: counts by type, load state, active state, plus optional per-service and per-timer detailed metrics
Fields§
§activating_units: u64Number of units in the “activating” state (in the process of being started)
active_units: u64Number of units in the “active” state (currently started and running)
automount_units: u64Number of automount units (on-demand filesystem mount points)
device_units: u64Number of device units (kernel devices exposed to systemd by udev)
failed_units: u64Number of units in the “failed” state (exited with error, crashed, or timed out)
inactive_units: u64Number of units in the “inactive” state (not currently running)
jobs_queued: u64Number of pending jobs queued in the systemd job scheduler
loaded_units: u64Number of units whose unit file has been successfully loaded into memory
masked_units: u64Number of units whose unit file is masked (symlinked to /dev/null, cannot be started)
mount_units: u64Number of mount units (filesystem mount points managed by systemd)
not_found_units: u64Number of units whose unit file could not be found on disk
path_units: u64Number of path units (file/directory watch triggers)
scope_units: u64Number of scope units (externally created process groups, e.g. user sessions)
service_units: u64Number of service units (daemon/process lifecycle management)
slice_units: u64Number of slice units (resource management groups in the cgroup hierarchy)
socket_units: u64Number of socket units (IPC/network socket activation endpoints)
target_units: u64Number of target units (synchronization points for grouping units)
timer_units: u64Number of timer units (calendar/monotonic scheduled triggers)
timer_persistent_units: u64Number of timer units with Persistent=yes (triggers missed runs after downtime)
timer_remain_after_elapse: u64Number of timer units with RemainAfterElapse=yes (stays loaded after firing)
total_units: u64Total number of units known to systemd (all types, all states)
service_stats: HashMap<String, ServiceStats>Per-service detailed metrics keyed by unit name (e.g. “sshd.service”)
timer_stats: HashMap<String, TimerStats>Per-timer detailed metrics keyed by unit name (e.g. “logrotate.timer”)
unit_states: HashMap<String, UnitStates>Per-unit active/load state tracking keyed by unit name
collection_timings: UnitsCollectionTimingsInner timing breakdown for this collector. Zero-valued before the first run completes or when the varlink path is taken.
Trait Implementations§
Source§impl Clone for SystemdUnitStats
impl Clone for SystemdUnitStats
Source§fn clone(&self) -> SystemdUnitStats
fn clone(&self) -> SystemdUnitStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SystemdUnitStats
impl Debug for SystemdUnitStats
Source§impl Default for SystemdUnitStats
impl Default for SystemdUnitStats
Source§fn default() -> SystemdUnitStats
fn default() -> SystemdUnitStats
Source§impl<'de> Deserialize<'de> for SystemdUnitStats
impl<'de> Deserialize<'de> for SystemdUnitStats
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>,
Source§impl FieldNamesAsArray<25> for SystemdUnitStats
impl FieldNamesAsArray<25> for SystemdUnitStats
Source§const FIELD_NAMES_AS_ARRAY: [&'static str; 25]
const FIELD_NAMES_AS_ARRAY: [&'static str; 25]
Generated array of field names for SystemdUnitStats.