monitor

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version string
)

Functions

func GetHost

func GetHost(agentConfig *model.AgentConfig, MemoryMultiplier int, DiskMultiplier int) *model.Host

GetHost 获取主机硬件信息

func GetState

func GetState(agentConfig *model.AgentConfig, skipConnectionCount bool, skipProcsCount bool, NetworkTrafficMultiplier int, NetworkSpeedMultiplier int) *model.HostState

func TrackNetworkSpeed

func TrackNetworkSpeed(agentConfig *model.AgentConfig)

TrackNetworkSpeed NIC监控,统计流量与速度

func UpdateIP

func UpdateIP()

UpdateIP 每30分钟更新一次IP地址与国家码的缓存

Types

This section is empty.

Jump to

Keyboard shortcuts

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