Documentation
¶
Index ¶
- func GetFileSystemList() ([]sigar.FileSystem, error)
- func Pids() ([]int, error)
- func Round(val float64, roundOn float64, places int) (newVal float64)
- type ConfigSettings
- type CpuTimes
- type FileSystemStat
- type MemStat
- type Process
- type ProcsMap
- type SwapStat
- type SystemLoad
- type TopConfig
- type Topbeat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileSystemList ¶
func GetFileSystemList() ([]sigar.FileSystem, error)
Types ¶
type ConfigSettings ¶
type ConfigSettings struct {
Input TopConfig
}
type CpuTimes ¶
type CpuTimes struct { sigar.Cpu UserPercent float64 `json:"user_p"` SystemPercent float64 `json:"system_p"` }
func GetCpuTimes ¶
func GetCpuTimesList ¶
type FileSystemStat ¶
type FileSystemStat struct { sigar.FileSystemUsage DevName string `json:"device_name"` Mount string `json:"mount_point"` UsedPercent float64 `json:"used_p"` // contains filtered or unexported fields }
func GetFileSystemStat ¶
func GetFileSystemStat(fs sigar.FileSystem) (*FileSystemStat, error)
type MemStat ¶
type Process ¶
type SystemLoad ¶
type SystemLoad struct { Load1 float64 `json:"load1"` Load5 float64 `json:"load5"` Load15 float64 `json:"load15"` }
func GetSystemLoad ¶
func GetSystemLoad() (*SystemLoad, error)
type Topbeat ¶
type Topbeat struct { TbConfig ConfigSettings // contains filtered or unexported fields }
func (*Topbeat) MatchProcess ¶
Click to show internal directories.
Click to hide internal directories.