utils

package
v0.0.0-...-046479b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(file string) bool

func GetPercentiles

func GetPercentiles(stats []*info.ContainerStats) (Percentiles, Percentiles)

Returns cpu and memory usage percentiles.

Types

type Mean

type Mean struct {

	// current mean.
	Mean float64
	// contains filtered or unexported fields
}

func (*Mean) Add

func (self *Mean) Add(value uint64)

type Percentiles

type Percentiles struct {
	// Average over the collected sample.
	Mean uint64 `json:"mean"`
	// Max seen over the collected sample.
	Max uint64 `json:"max"`
	// 90th percentile over the collected sample.
	Ninety uint64 `json:"ninety"`
}

TODO(rjnagal): Move out when we update API.

Directories

Path Synopsis
fs
procfs contains several low level functions to read information from /proc filesystem, and also provides some utility functions like JiffiesToDuration.
procfs contains several low level functions to read information from /proc filesystem, and also provides some utility functions like JiffiesToDuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL