1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use serde::Deserialize;

#[derive(Deserialize, Debug, Clone)]
pub struct AppStatusResponseUnique {
    pub apps: AppStatus,
    pub message: String,
    pub status: String,
}

#[derive(Deserialize, Debug, Clone)]
pub struct AppStatusResponseAll {
    pub apps: Vec<AppStatus>,
    pub message: String,
    pub status: String,
}

#[derive(Deserialize, Debug, Clone)]
pub struct AppStatus {
    pub container: String,
    pub cpu: String,
    pub id: String,
    pub last_restart: String,
    pub memory: String,
    #[serde(rename = "netIO")]
    pub net_io: NetIO,
    pub ssd: String,
    #[serde(rename = "startedAt")]
    pub started_at: String,
}

#[derive(Deserialize, Debug, Clone)]
pub struct NetIO {
    pub down: String,
    pub up: String,
}