hids

package
v1.2.6-sp7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL