diff options
author | Matej Marusak <mmarusak@redhat.com> | 2020-02-13 20:21:53 +0100 |
---|---|---|
committer | Matej Marusak <mmarusak@redhat.com> | 2020-02-17 20:05:14 +0100 |
commit | 98774e14762ac0a1010bd1785c362f7d24ff63fd (patch) | |
tree | e7358de89305a901c452004d8c16d185d59b2e39 /pkg/api/handlers/types.go | |
parent | e4e5efc12b7902a22561170ca59f3da90b7b80ce (diff) | |
download | podman-98774e14762ac0a1010bd1785c362f7d24ff63fd.tar.gz podman-98774e14762ac0a1010bd1785c362f7d24ff63fd.tar.bz2 podman-98774e14762ac0a1010bd1785c362f7d24ff63fd.zip |
stats: Expose CPU usage in API
`stats.CPU` is a number representing CPU usage in percents. It is possible
to calculate it from other exposed fields (once they are implemented
correctly) but why to do it, when this is already calculated.
This does not break API, it just adds another field.
Signed-off-by: Matej Marusak <mmarusak@redhat.com>
Diffstat (limited to 'pkg/api/handlers/types.go')
-rw-r--r-- | pkg/api/handlers/types.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pkg/api/handlers/types.go b/pkg/api/handlers/types.go index f5d9f9ad5..60baaa366 100644 --- a/pkg/api/handlers/types.go +++ b/pkg/api/handlers/types.go @@ -78,10 +78,6 @@ type Container struct { docker.ContainerCreateConfig } -type ContainerStats struct { - docker.ContainerStats -} - type Version struct { docker.Version } @@ -143,10 +139,6 @@ type IDResponse struct { ID string `json:"id"` } -type Stats struct { - docker.StatsJSON -} - type ContainerTopOKBody struct { dockerContainer.ContainerTopOKBody } |