Initial Commit

This commit is contained in:
2022-04-18 20:53:57 +02:00
commit b9e6eeeb80
9 changed files with 1151 additions and 0 deletions

16
src/state.rs Normal file
View File

@ -0,0 +1,16 @@
#[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 },
}