2022-02-05 01:22:53 +00:00
|
|
|
package containers
|
2020-07-15 21:32:28 +00:00
|
|
|
|
|
|
|
// ContainerStats contains fields returned in docker stats function stream
|
|
|
|
type ContainerStats struct {
|
2022-10-04 17:54:26 +00:00
|
|
|
Pids struct {
|
|
|
|
Current int `json:"current"`
|
|
|
|
} `json:"pids_stats"`
|
|
|
|
CPU struct {
|
|
|
|
Usage struct {
|
|
|
|
Total int64 `json:"total_usage"`
|
|
|
|
} `json:"cpu_usage"`
|
|
|
|
} `json:"cpu_stats"`
|
|
|
|
Memory struct {
|
|
|
|
Usage int `json:"usage"`
|
|
|
|
MaxUsage int `json:"max_usage"`
|
|
|
|
Limit int `json:"limit"`
|
|
|
|
} `json:"memory_stats"`
|
|
|
|
ID string `json:"id"`
|
2020-07-15 21:32:28 +00:00
|
|
|
}
|