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 ProcCpuTime
- type ProcMemStat
- 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 CpuTimes ¶
type CpuTimes struct { User uint64 `json:"user"` UserPercent float64 `json:"user_p"` Nice uint64 `json:"nice"` System uint64 `json:"system"` SystemPercent float64 `json:"system_p"` Idle uint64 `json:"idle"` IOWait uint64 `json:"iowait"` Irq uint64 `json:"irq"` SoftIrq uint64 `json:"softirq"` Steal uint64 `json:"steal"` }
type FileSystemStat ¶
type FileSystemStat struct { DevName string `json:"device_name"` Total uint64 `json:"total"` Used uint64 `json:"used"` UsedPercent float64 `json:"used_p"` Free uint64 `json:"free"` Avail uint64 `json:"avail"` Files uint64 `json:"files"` FreeFiles uint64 `json:"free_files"` Mount string `json:"mount_point"` // contains filtered or unexported fields }
func GetFileSystemStat ¶
func GetFileSystemStat(fs sigar.FileSystem) (*FileSystemStat, error)
func (*FileSystemStat) String ¶
func (f *FileSystemStat) String() string
type MemStat ¶
type ProcCpuTime ¶
type ProcCpuTime struct { User uint64 `json:"user"` UserPercent float64 `json:"user_p"` System uint64 `json:"system"` Total uint64 `json:"total"` Start string `json:"start_time"` }
func (*ProcCpuTime) String ¶
func (t *ProcCpuTime) String() string
type ProcMemStat ¶
type ProcMemStat struct { Size uint64 `json:"size"` Rss uint64 `json:"rss"` RssPercent float64 `json:"rss_p"` }
func (*ProcMemStat) String ¶
func (m *ProcMemStat) String() string
type Process ¶
type Process struct { Pid int `json:"pid"` Ppid int `json:"ppid"` Name string `json:"name"` Username string `json:"username"` State string `json:"state"` CmdLine string `json:"cmdline"` Mem *ProcMemStat `json:"mem"` Cpu *ProcCpuTime `json:"cpu"` // contains filtered or unexported fields }
type SwapStat ¶
type SystemLoad ¶
type SystemLoad struct { Load1 float64 `json:"load1"` Load5 float64 `json:"load5"` Load15 float64 `json:"load15"` }
func GetSystemLoad ¶
func GetSystemLoad() (*SystemLoad, error)
func (*SystemLoad) String ¶
func (t *SystemLoad) String() string
type TopConfig ¶
type Topbeat ¶
type Topbeat struct { TbConfig ConfigSettings // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.