Documentation ¶
Index ¶
- type InMemoryStorage
- func (self *InMemoryStorage) AddStats(ref info.ContainerReference, stats *info.ContainerStats) error
- func (self *InMemoryStorage) Close() error
- func (self *InMemoryStorage) Percentiles(name string, cpuPercentiles, memPercentiles []int) (*info.ContainerStatsPercentiles, error)
- func (self *InMemoryStorage) RecentStats(name string, numStats int) ([]*info.ContainerStats, error)
- func (self *InMemoryStorage) Samples(name string, numSamples int) ([]*info.ContainerStatsSample, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryStorage ¶
type InMemoryStorage struct {
// contains filtered or unexported fields
}
func New ¶
func New( maxNumSamples, maxNumStats int, backend storage.StorageDriver, ) *InMemoryStorage
func (*InMemoryStorage) AddStats ¶
func (self *InMemoryStorage) AddStats(ref info.ContainerReference, stats *info.ContainerStats) error
func (*InMemoryStorage) Close ¶
func (self *InMemoryStorage) Close() error
func (*InMemoryStorage) Percentiles ¶
func (self *InMemoryStorage) Percentiles(name string, cpuPercentiles, memPercentiles []int) (*info.ContainerStatsPercentiles, error)
func (*InMemoryStorage) RecentStats ¶
func (self *InMemoryStorage) RecentStats(name string, numStats int) ([]*info.ContainerStats, error)
func (*InMemoryStorage) Samples ¶
func (self *InMemoryStorage) Samples(name string, numSamples int) ([]*info.ContainerStatsSample, error)
Click to show internal directories.
Click to hide internal directories.