forked from helmutkemper/iotmaker.docker.builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfuncContainerStatisticsOneShot.go
More file actions
38 lines (34 loc) · 901 Bytes
/
Copy pathfuncContainerStatisticsOneShot.go
File metadata and controls
38 lines (34 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package iotmakerdockerbuilder
import (
"github.com/docker/docker/api/types"
"github.com/helmutkemper/util"
)
// ContainerStatisticsOneShot
//
// English:
//
// Returns the container's memory and system consumption data at the time of the query.
//
// Output:
// stats: Container statistics such as memory, bytes read/written, CPUs, access times, etc.
// err: standard error object
//
// Português:
//
// Retorna os dados de consumo de memória e sistema do container no instante da consulta.
//
// Saída:
// stats: Estatísticas do conbtainer, como memória, bytes lidos/escritos, CPUs, tempos de acesso,
// etc.
// err: Objeto de erro padrão
func (e *ContainerBuilder) ContainerStatisticsOneShot() (
stats types.Stats,
err error,
) {
stats, err = e.dockerSys.ContainerStatisticsOneShot(e.containerID)
if err != nil {
util.TraceToLog()
return
}
return
}