docs
This commit is contained in:
parent
21cf8472a0
commit
bdc3ae7120
@ -19,11 +19,9 @@ import "github.com/google/cadvisor/info"
|
|||||||
type StorageDriver interface {
|
type StorageDriver interface {
|
||||||
AddStats(ref info.ContainerReference, stats *info.ContainerStats) error
|
AddStats(ref info.ContainerReference, stats *info.ContainerStats) error
|
||||||
|
|
||||||
// Read most recent stats. The returned stats must be reverse
|
// Read most recent stats. numStats indicates max number of stats
|
||||||
// chronological ordered. i.e. most recent comes first. numStats
|
// returned. The returned stats must be consecutive observed stats. If
|
||||||
// indicates max number of stats returned. The returned stats must be
|
// numStats < 0, then return all stats stored in the storage.
|
||||||
// consecutive observed stats. If numStats < 0, then return all stats
|
|
||||||
// stored in the storage.
|
|
||||||
RecentStats(containerName string, numStats int) ([]*info.ContainerStats, error)
|
RecentStats(containerName string, numStats int) ([]*info.ContainerStats, error)
|
||||||
|
|
||||||
// Read the specified percentiles of CPU and memory usage of the container.
|
// Read the specified percentiles of CPU and memory usage of the container.
|
||||||
|
Loading…
Reference in New Issue
Block a user