Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Poller = period.NewPoller("system_info", getSystemInfo, aggregate)
Functions ¶
This section is empty.
Types ¶
type Aggregated ¶
func (Aggregated) MarshalJSON ¶
func (result Aggregated) MarshalJSON() ([]byte, error)
type MemoryUsage ¶
type SystemInfo ¶
type SystemInfo struct {
Timestamp int64 `json:"timestamp"`
CPUAverage *float64 `json:"cpu_average"`
Memory *MemoryUsage `json:"memory"`
Disks map[string]*Disk `json:"disks"` // disk usage by partition
DisksIO map[string]*DiskIO `json:"disks_io"` // disk IO by device
Network *Network `json:"network"`
Sensors Sensors `json:"sensors"` // sensor temperature by key
}
func (*SystemInfo) MarshalJSON ¶
func (s *SystemInfo) MarshalJSON() ([]byte, error)
explicitly implement MarshalJSON to avoid reflection
Click to show internal directories.
Click to hide internal directories.