kubernetes/vendor/github.com/google/cadvisor/summary/summary.go

type secondSample

type availableResources

type StatsSummary

// Adds a new seconds sample.
// If enough seconds samples are collected, a minute sample is generated and derived
// stats are updated.
func (s *StatsSummary) AddSample(stat v1.ContainerStats) error {}

func (s *StatsSummary) updateLatestUsage() {}

// Generate new derived stats based on current minute stats samples.
func (s *StatsSummary) updateDerivedStats() error {}

// helper method to get hour and daily derived stats
func (s *StatsSummary) getDerivedUsage(n int) (info.Usage, error) {}

// Return the latest calculated derived stats.
func (s *StatsSummary) DerivedStats() (info.DerivedStats, error) {}

func New(spec v1.ContainerSpec) (*StatsSummary, error) {}