Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEndpoints ¶
GetEndpoints - get REST endpoints related to operating and runtime systems
Types ¶
type CPUInfo ¶
CPUInfo - cpu information
func GetCPUInfo ¶
GetCPUInfo - gives information about the CPU/CPUs of ther server
type CPUStats ¶
type CPUStats struct { Usage []float64 `json:"usage"` CombinedUsage float64 `json:"combinedUsage"` }
CPUStats - Statistics about the CPU
func GetCPUStats ¶
GetCPUStats - get system CPU stats, number of cores, usage...
type DiskInfo ¶
type DiskInfo struct { Path string `json:"path"` Fstype string `json:"fstype"` Total uint64 `json:"total"` Free uint64 `json:"free"` Used uint64 `json:"used"` }
DiskInfo - disk info and usage
func GetDiskInfo ¶
GetDiskInfo - get stats for all the disks in the system
type MemoryStats ¶
type MemoryStats struct { Total uint64 `json:"total"` Used uint64 `json:"used"` Free uint64 `json:"free"` }
MemoryStats - memory statistics
func GetMemStats ¶
func GetMemStats() (memStats *MemoryStats, err error)
GetMemStats - get memory stats
type SysStat ¶
type SysStat struct { CPUStats *CPUStats `json:"cpuStats"` MemoryStats *MemoryStats `json:"memoryStats"` }
SysStat - system stats for the server
func GetSysStats ¶
GetSysStats - get system statistics at the time of the call
Click to show internal directories.
Click to hide internal directories.