mods

package
v0.0.0-...-fd21f57 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUStat

type CPUStat struct {
	// contains filtered or unexported fields
}

CPUStat defines global cpu usage. Idle, system and user cpu time are supported.

func (*CPUStat) Data

func (c *CPUStat) Data() []Dataset

Data returns a slice of all Datasets available.

func (*CPUStat) Len

func (c *CPUStat) Len() int

Len returns the amount of datapoints of the data available.

func (*CPUStat) Update

func (c *CPUStat) Update() error

Update retreives new values from /proc/stat

type Collector

type Collector interface {
	Len() int
	Update() error
	Data() []Dataset
}

Collector is the interface used to descrbie monitoring/updater methods.

type Dataset

type Dataset struct {
	Title  string
	Values []float64
}

Dataset is a set of datapoints and a description.

type DiskStat

type DiskStat struct {
	// contains filtered or unexported fields
}

DiskStat defines global cpu usage. Idle, system and user cpu time are supported.

func (*DiskStat) Data

func (c *DiskStat) Data() []Dataset

Data returns a slice of all Datasets available.

func (*DiskStat) Len

func (c *DiskStat) Len() int

Len returns the amount of datapoints of the data available.

func (*DiskStat) Update

func (c *DiskStat) Update() error

Update retreives new values from /proc/stat

type LoadAvg

type LoadAvg struct {
	// contains filtered or unexported fields
}

LoadAvg defines global cpu usage. Idle, system and user cpu time are supported.

func (*LoadAvg) Data

func (c *LoadAvg) Data() []Dataset

Data returns a slice of all Datasets available.

func (*LoadAvg) Len

func (c *LoadAvg) Len() int

Len returns the amount of datapoints of the data available.

func (*LoadAvg) Update

func (c *LoadAvg) Update() error

Update retreives new values from /proc/stat

type MemInfo

type MemInfo struct {
	// contains filtered or unexported fields
}

MemInfo defines global cpu usage. Idle, system and user cpu time are supported.

func (*MemInfo) Data

func (c *MemInfo) Data() []Dataset

Data returns a slice of all Datasets available.

func (*MemInfo) Len

func (c *MemInfo) Len() int

Len returns the amount of datapoints of the data available.

func (*MemInfo) Update

func (c *MemInfo) Update() error

Update retreives new values from /proc/stat

type NetDev

type NetDev struct {
	// contains filtered or unexported fields
}

NetDev defines global cpu usage. Idle, system and user cpu time are supported.

func (*NetDev) Data

func (c *NetDev) Data() []Dataset

Data returns a slice of all Datasets available.

func (*NetDev) Len

func (c *NetDev) Len() int

Len returns the amount of datapoints of the data available.

func (*NetDev) Update

func (c *NetDev) Update() error

Update retreives new values from /proc/stat

type Procs

type Procs struct {
	// contains filtered or unexported fields
}

Procs defines global cpu usage. Idle, system and user cpu time are supported.

func (*Procs) Data

func (c *Procs) Data() []Dataset

Data returns a slice of all Datasets available.

func (*Procs) Len

func (c *Procs) Len() int

Len returns the amount of datapoints of the data available.

func (*Procs) Update

func (c *Procs) Update() error

Update retreives new values from /proc/stat

Jump to

Keyboard shortcuts

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