diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-06 12:24:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-06 12:24:13 -0800 |
commit | 02e2342d20a01c89236b4c2f2867e6acd8eda923 (patch) | |
tree | 8c0ecfb6f8666d80328a564106c53214f66e3e97 /cmd/podman/varlink | |
parent | f50715ed25fd1bc58dad39982a2a5b5837dcd8ef (diff) | |
parent | 788f818cc53fbd68267c2c6ab5de8655938414cb (diff) | |
download | podman-02e2342d20a01c89236b4c2f2867e6acd8eda923.tar.gz podman-02e2342d20a01c89236b4c2f2867e6acd8eda923.tar.bz2 podman-02e2342d20a01c89236b4c2f2867e6acd8eda923.zip |
Merge pull request #2442 from baude/remotepodtop
podman-remote pod top|stats
Diffstat (limited to 'cmd/podman/varlink')
-rw-r--r-- | cmd/podman/varlink/io.podman.varlink | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/podman/varlink/io.podman.varlink b/cmd/podman/varlink/io.podman.varlink index 73e6c15f9..a50b7dd13 100644 --- a/cmd/podman/varlink/io.podman.varlink +++ b/cmd/podman/varlink/io.podman.varlink @@ -549,6 +549,10 @@ method ExportContainer(name: string, path: string) -> (tarfile: string) # ~~~ method GetContainerStats(name: string) -> (container: ContainerStats) +# GetContainerStatsWithHistory takes a previous set of container statistics and uses libpod functions +# to calculate the containers statistics based on current and previous measurements. +method GetContainerStatsWithHistory(previousStats: ContainerStats) -> (container: ContainerStats) + # This method has not be implemented yet. # method ResizeContainerTty() -> (notimplemented: NotImplemented) @@ -952,8 +956,7 @@ method RemovePod(name: string, force: bool) -> (pod: string) # This method has not be implemented yet. # method WaitPod() -> (notimplemented: NotImplemented) -# This method has not been implemented yet. -# method TopPod() -> (notimplemented: NotImplemented) +method TopPod(pod: string, latest: bool, descriptors: []string) -> (stats: []string) # GetPodStats takes the name or ID of a pod and returns a pod name and slice of ContainerStats structure which # contains attributes like memory and cpu usage. If the pod cannot be found, a [PodNotFound](#PodNotFound) |