forked from 0xERR0R/dex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
39 lines (37 loc) · 966 Bytes
/
types.go
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
36
37
38
39
package main
type containerStats struct {
Id string `json:"id"`
Read string `json:"read"`
BlockIO struct {
IOBytes []IOService `json:"io_service_bytes_recursive"`
} `json:"blkio_stats"`
CPU struct {
CPUUsage struct {
TotalUsage uint64 `json:"total_usage"`
} `json:"cpu_usage"`
SystemCpuUsage uint64 `json:"system_cpu_usage"`
} `json:"cpu_stats"`
PreCPU struct {
CPUUsage struct {
TotalUsage uint64 `json:"total_usage"`
} `json:"cpu_usage"`
SystemCpuUsage uint64 `json:"system_cpu_usage"`
} `json:"precpu_stats"`
Memory struct {
Usage uint64 `json:"usage"`
Limit uint64 `json:"limit"`
MemoryStats struct {
Cache uint64 `json:"cache"`
} `json:"stats"`
} `json:"memory_stats"`
Networks struct {
Eth0 struct {
RxBytes uint64 `json:"rx_bytes"`
TxBytes uint64 `json:"tx_bytes"`
} `json:"eth0"`
} `json:"networks"`
}
type IOService struct {
Op string `json:"op"`
Value uint64 `json:"value"`
}