ResourceStat

Trait ResourceStat 

Source
pub trait ResourceStat {
    // Required methods
    fn get_total_cpu_millicores(&self) -> i64;
    fn get_total_memory_bytes(&self) -> i64;
    fn get_cpu_usage_millicores(&self) -> i64;
    fn get_memory_usage_bytes(&self) -> i64;
}
Expand description

A trait for getting resource statistics.

Required Methods§

Source

fn get_total_cpu_millicores(&self) -> i64

Get the total CPU in millicores.

Source

fn get_total_memory_bytes(&self) -> i64

Get the total memory in bytes.

Source

fn get_cpu_usage_millicores(&self) -> i64

Get the CPU usage in millicores.

Source

fn get_memory_usage_bytes(&self) -> i64

Get the memory usage in bytes.

Implementors§