summaryrefslogtreecommitdiff
path: root/libpod/define/containerstate.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-23 14:43:30 -0400
committerGitHub <noreply@github.com>2021-06-23 14:43:30 -0400
commit2b850ef055885bf3482f405e804fb02aef2e9895 (patch)
tree557e61615adc963b6deb5622a2847eade38fd290 /libpod/define/containerstate.go
parente50e0dad9055673ef344f756e91387d9bd0c4d90 (diff)
parentf26fa5392110c2b59cb17d4f1013cf6bb4ecd873 (diff)
downloadpodman-2b850ef055885bf3482f405e804fb02aef2e9895.tar.gz
podman-2b850ef055885bf3482f405e804fb02aef2e9895.tar.bz2
podman-2b850ef055885bf3482f405e804fb02aef2e9895.zip
Merge pull request #10696 from cdoern/libpodStats
Podman Stats additional features
Diffstat (limited to 'libpod/define/containerstate.go')
-rw-r--r--libpod/define/containerstate.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/libpod/define/containerstate.go b/libpod/define/containerstate.go
index 5d2bc9099..fc272beaa 100644
--- a/libpod/define/containerstate.go
+++ b/libpod/define/containerstate.go
@@ -1,6 +1,10 @@
package define
-import "github.com/pkg/errors"
+import (
+ "time"
+
+ "github.com/pkg/errors"
+)
// ContainerStatus represents the current state of a container
type ContainerStatus int
@@ -120,12 +124,14 @@ func (s ContainerExecStatus) String() string {
// ContainerStats contains the statistics information for a running container
type ContainerStats struct {
+ AvgCPU float64
ContainerID string
Name string
PerCPU []uint64
CPU float64
CPUNano uint64
CPUSystemNano uint64
+ DataPoints int64
SystemNano uint64
MemUsage uint64
MemLimit uint64
@@ -135,4 +141,6 @@ type ContainerStats struct {
BlockInput uint64
BlockOutput uint64
PIDs uint64
+ UpTime time.Duration
+ Duration uint64
}