Files
compost/src/state.rs
2022-04-18 20:53:57 +02:00

17 lines
380 B
Rust

#[derive(Clone, Debug, PartialEq)]
pub struct StackStats {
pub containers: u32,
pub running_containers: u32,
pub stopped_containers: u32,
pub process_count: u32,
pub cpu_percent: f64,
pub memory_usage: usize,
pub memory_percent: f64,
}
#[derive(Debug)]
pub enum StateEvent {
Put { name: String, stats: StackStats },
Delete { name: String },
}