Initial Commit
This commit is contained in:
16
src/state.rs
Normal file
16
src/state.rs
Normal 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 },
|
||||
}
|
||||
Reference in New Issue
Block a user