Documentation ¶
Index ¶
- Constants
- Variables
- func CPUAverage() float64
- func CPUAverageCallback(callback func(i float64))
- func CPUPercent() float64
- func CPUPercentCallback(callback func(i float64))
- func GetGlobalHealthManager() *healthinfo.Manager
- func InitHealthManager()
- func MemoryPercent() float64
- func MemoryPercentCallback(callback func(i float64))
- func SetMonitorIntervalFloat(i float64)
- func ShowMonitorInterval()
- func SystemHealthStats() (*health.HealthInfo, error)
Constants ¶
View Source
const LASTCPUPERCENT_KEY = "LastCPUPercent"
Variables ¶
View Source
var Exports = map[string]interface{}{ "Init": InitHealthManager, "SetMonitorInterval": SetMonitorIntervalFloat, "ShowMonitorInterval": ShowMonitorInterval, "CPUPercent": CPUPercent, "MemoryPercent": MemoryPercent, "CPUPercentCallback": CPUPercentCallback, "CPUAverageCallback": CPUAverageCallback, "MemoryPercentCallback": MemoryPercentCallback, }
Functions ¶
func CPUAverage ¶
func CPUAverage() float64
func CPUAverageCallback ¶
func CPUAverageCallback(callback func(i float64))
func CPUPercent ¶
func CPUPercent() float64
func CPUPercentCallback ¶
func CPUPercentCallback(callback func(i float64))
func GetGlobalHealthManager ¶
func GetGlobalHealthManager() *healthinfo.Manager
func InitHealthManager ¶
func InitHealthManager()
func MemoryPercent ¶
func MemoryPercent() float64
func MemoryPercentCallback ¶
func MemoryPercentCallback(callback func(i float64))
func SetMonitorIntervalFloat ¶
func SetMonitorIntervalFloat(i float64)
func ShowMonitorInterval ¶
func ShowMonitorInterval()
func SystemHealthStats ¶
func SystemHealthStats() (*health.HealthInfo, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.