This commit is contained in:
Nan Deng 2014-06-18 11:18:21 -07:00
parent 21cf8472a0
commit bdc3ae7120

View File

@ -19,11 +19,9 @@ import "github.com/google/cadvisor/info"
type StorageDriver interface {
AddStats(ref info.ContainerReference, stats *info.ContainerStats) error
// Read most recent stats. The returned stats must be reverse
// chronological ordered. i.e. most recent comes first. numStats
// indicates max number of stats returned. The returned stats must be
// consecutive observed stats. If numStats < 0, then return all stats
// stored in the storage.
// Read most recent stats. numStats indicates max number of stats
// returned. The returned stats must be consecutive observed stats. If
// numStats < 0, then return all stats stored in the storage.
RecentStats(containerName string, numStats int) ([]*info.ContainerStats, error)
// Read the specified percentiles of CPU and memory usage of the container.