Struct monitor_types::SystemStatsRecord
source · pub struct SystemStatsRecord {Show 14 fields
pub id: String,
pub server_id: String,
pub ts: f64,
pub system_load: f64,
pub cpu_perc: f32,
pub cpu_freq_mhz: f64,
pub mem_used_gb: f64,
pub mem_total_gb: f64,
pub disk: DiskUsage,
pub cpus: Vec<SingleCpuUsage>,
pub networks: Vec<SystemNetwork>,
pub components: Vec<SystemComponent>,
pub processes: Vec<SystemProcess>,
pub polling_rate: Timelength,
}Fields§
§id: String§server_id: String§ts: f64§system_load: f64§cpu_perc: f32§cpu_freq_mhz: f64§mem_used_gb: f64§mem_total_gb: f64§disk: DiskUsage§cpus: Vec<SingleCpuUsage>§networks: Vec<SystemNetwork>§components: Vec<SystemComponent>§processes: Vec<SystemProcess>§polling_rate: TimelengthImplementations§
source§impl SystemStatsRecord
impl SystemStatsRecord
pub fn from_stats( server_id: String, ts: i64, stats: SystemStats ) -> SystemStatsRecord
Trait Implementations§
source§impl Clone for SystemStatsRecord
impl Clone for SystemStatsRecord
source§fn clone(&self) -> SystemStatsRecord
fn clone(&self) -> SystemStatsRecord
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 SystemStatsRecord
impl Debug for SystemStatsRecord
source§impl Default for SystemStatsRecord
impl Default for SystemStatsRecord
source§fn default() -> SystemStatsRecord
fn default() -> SystemStatsRecord
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SystemStatsRecord
impl<'de> Deserialize<'de> for SystemStatsRecord
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