From b5a235df900a6471895111b4de5f80732f7f563a Mon Sep 17 00:00:00 2001 From: baude Date: Mon, 4 May 2020 14:10:30 -0500 Subject: v2 podman stats Signed-off-by: baude --- libpod/define/containerstate.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'libpod/define/containerstate.go') diff --git a/libpod/define/containerstate.go b/libpod/define/containerstate.go index 6da49a594..825e77387 100644 --- a/libpod/define/containerstate.go +++ b/libpod/define/containerstate.go @@ -112,3 +112,22 @@ func (s ContainerExecStatus) String() string { return "bad state" } } + +// ContainerStats contains the statistics information for a running container +type ContainerStats struct { + ContainerID string + Name string + PerCPU []uint64 + CPU float64 + CPUNano uint64 + CPUSystemNano uint64 + SystemNano uint64 + MemUsage uint64 + MemLimit uint64 + MemPerc float64 + NetInput uint64 + NetOutput uint64 + BlockInput uint64 + BlockOutput uint64 + PIDs uint64 +} -- cgit v1.2.3-54-g00ecf