Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stats ¶
type Stats struct { ID string Image string Name string `json:"name,omitempty"` MemoryStats struct { MaxUsage int `json:"max_usage"` Usage int `json:"usage"` Limit int `json:"limit"` } `json:"memory_stats"` CpuStats struct { CpuUsage struct { TotalUsage int `json:"total_usage"` } `json:"cpu_usage"` SystemCpuUsage int64 `json:"system_cpu_usage"` } `json:"cpu_stats"` }
func (*Stats) CalculateCPUUsage ¶
func (*Stats) CalculateMemoryUsage ¶
Click to show internal directories.
Click to hide internal directories.