Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUStats ¶
func (CPUStats) SysPercent ¶
func (cpuStats CPUStats) SysPercent() Percentage
func (CPUStats) UserPercent ¶
func (cpuStats CPUStats) UserPercent() Percentage
func (CPUStats) WaitPercent ¶
func (cpuStats CPUStats) WaitPercent() Percentage
type Collector ¶
type Collector interface { StartCollecting(time.Duration, chan struct{}) GetCPULoad() (load CPULoad, err error) GetCPUStats() (stats CPUStats, err error) GetMemStats() (usage Usage, err error) GetSwapStats() (usage Usage, err error) GetDiskStats(mountedPath string) (stats DiskStats, err error) }
func NewDummyStatsCollector ¶
func NewDummyStatsCollector() (collector Collector)
type Percentage ¶
type Percentage struct {
// contains filtered or unexported fields
}
func NewPercentage ¶
func NewPercentage(part, total uint64) (percentage Percentage)
func (Percentage) FormatFractionOf100 ¶
func (p Percentage) FormatFractionOf100(numberOfDecimals int) string
func (Percentage) FractionOf100 ¶
func (p Percentage) FractionOf100() float64
Source Files ¶
Click to show internal directories.
Click to hide internal directories.