sys_metrics 0.2.7

Cross-platform library to gather stats/information from the host
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::cpu::LoadAvg;

use serde::{Deserialize, Serialize};

mod sys;

pub use sys::*;

/// Struct containing the principal host's information.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct HostInfo {
    pub loadavg: LoadAvg,
    pub system: String,
    pub os_version: String,
    pub kernel_version: String,
    pub hostname: String,
    pub uptime: u64,
}