spiegel_podman/pkg/api
Jake Correnti 608ad7d113 Non-running containers now report statistics via the podman stats
command

Previously, if a container was not running, and the user ran the `podman
stats` command, an error would be reported: `Error: container state
improper`.

Podman now reports stats as the fields' default values for their
respective type if the container is not running:

```
$ podman stats --no-stream demo

ID            NAME        CPU %       MEM USAGE / LIMIT  MEM %       NET IO      BLOCK IO    PIDS        CPU TIME    AVG CPU %
4b4bf8ce84ed  demo        0.00%       0B / 0B            0.00%       0B / 0B     0B / 0B     0           0s          0.00%
```

Closes: #14498

Signed-off-by: Jake Correnti <jcorrenti13@gmail.com>
2022-06-13 15:03:22 -04:00
..
handlers Non-running containers now report statistics via the podman stats 2022-06-13 15:03:22 -04:00
server Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
types Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
Makefile Remove GO111MODULES use 2022-05-17 13:42:03 -07:00
tags.yaml [CI:DOCS] Set all operation id to be compatibile 2021-04-05 19:54:30 -07:00