add doc
This commit is contained in:
parent
9c54221a54
commit
7258101720
@ -19,9 +19,11 @@ 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. numStats indicates max number of stats
|
// Read most recent stats. The returned stats must be reverse
|
||||||
// returned. The returned stats must be consecutive observed stats. If
|
// chronological ordered. i.e. most recent comes first. numStats
|
||||||
// numStats < 0, then return all stats stored in the storage.
|
// 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)
|
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.
|
||||||
|
@ -254,7 +254,6 @@ func StorageDriverTestRetrievePartialRecentStats(driver storage.StorageDriver, t
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The driver must be albe to hold more than 10 stats
|
|
||||||
func StorageDriverTestRetrieveAllRecentStats(driver storage.StorageDriver, t *testing.T) {
|
func StorageDriverTestRetrieveAllRecentStats(driver storage.StorageDriver, t *testing.T) {
|
||||||
defer driver.Close()
|
defer driver.Close()
|
||||||
N := 100
|
N := 100
|
||||||
|
Loading…
Reference in New Issue
Block a user