Versions in this module Expand all Collapse all v1 v1.2.3 May 18, 2016 v1.2.2 Apr 26, 2016 v1.2.1 Apr 7, 2016 v1.2.0 Mar 30, 2016 Changes in this version type Process + CmdLine string + Username string v1.1.2 Mar 8, 2016 v1.1.1 Feb 11, 2016 v1.1.0 Feb 2, 2016 Changes in this version + func GetFileSystemList() ([]sigar.FileSystem, error) + func Pids() ([]int, error) + func Round(val float64, roundOn float64, places int) (newVal float64) + type ConfigSettings struct + Input TopConfig + type CpuTimes struct + IOWait uint64 + Idle uint64 + Irq uint64 + Nice uint64 + SoftIrq uint64 + Steal uint64 + System uint64 + SystemPercent float64 + User uint64 + UserPercent float64 + func GetCpuTimes() (*CpuTimes, error) + func GetCpuTimesList() ([]CpuTimes, error) + func (t *CpuTimes) String() string + type FileSystemStat struct + Avail uint64 + DevName string + Files uint64 + Free uint64 + FreeFiles uint64 + Mount string + Total uint64 + Used uint64 + UsedPercent float64 + func GetFileSystemStat(fs sigar.FileSystem) (*FileSystemStat, error) + func (f *FileSystemStat) String() string + type MemStat struct + ActualFree uint64 + ActualUsed uint64 + ActualUsedPercent float64 + Free uint64 + Total uint64 + Used uint64 + UsedPercent float64 + func GetMemory() (*MemStat, error) + func (m *MemStat) String() string + type ProcCpuTime struct + Start string + System uint64 + Total uint64 + User uint64 + UserPercent float64 + func (t *ProcCpuTime) String() string + type ProcMemStat struct + Rss uint64 + RssPercent float64 + Share uint64 + Size uint64 + func (m *ProcMemStat) String() string + type Process struct + Cpu *ProcCpuTime + Mem *ProcMemStat + Name string + Pid int + Ppid int + State string + func GetProcess(pid int) (*Process, error) + func (p *Process) String() string + type ProcsMap map[int]*Process + type SwapStat struct + Free uint64 + Total uint64 + Used uint64 + UsedPercent float64 + func GetSwap() (*SwapStat, error) + type SystemLoad struct + Load1 float64 + Load15 float64 + Load5 float64 + func GetSystemLoad() (*SystemLoad, error) + func (t *SystemLoad) String() string + type TopConfig struct + Period *int64 + Procs *[]string + Stats struct{ ... } + type Topbeat struct + TbConfig ConfigSettings + func New() *Topbeat + func (t *Topbeat) MatchProcess(name string) bool + func (t *Topbeat) Run(b *beat.Beat) error + func (t *Topbeat) Stop() + func (tb *Topbeat) Cleanup(b *beat.Beat) error + func (tb *Topbeat) Config(b *beat.Beat) error + func (tb *Topbeat) Setup(b *beat.Beat) error