Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUTicks ¶
type CPUTicks struct {
// contains filtered or unexported fields
}
------------------------------------------------------------------------------
type Metrics ¶
type Metrics struct { Hostname string `json:"hostname"` Uptime float64 `json:"uptime"` CPU struct { CPU float64 `json:"cpu"` CPUs []float64 `json:"cpus"` Top [5]Process `json:"top"` } `json:"cpu"` Memory struct { Total uint64 `json:"total"` Avail uint64 `json:"avail"` Top [5]Process `json:"top"` } `json:"memory"` Swap struct { Total uint64 `json:"total"` Free uint64 `json:"free"` } `json:"swap"` Filesystems []Partition `json:"filesystems"` Networks []Interface `json:"networks"` }
==============================================================================
func (*Metrics) GetFilesystems ¶
------------------------------------------------------------------------------
func (*Metrics) GetHostname ¶
func (self *Metrics) GetHostname()
------------------------------------------------------------------------------
func (*Metrics) GetMemory ¶
func (self *Metrics) GetMemory()
------------------------------------------------------------------------------
func (*Metrics) GetNetworks ¶
------------------------------------------------------------------------------
Click to show internal directories.
Click to hide internal directories.