monitor

package
v0.0.0-...-2186419 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InfoMiniJSON

func InfoMiniJSON() string

Types

type CPUInfo

type CPUInfo struct {
	ModelName string
	Cores     int32
}

type InterfaceInfo

type InterfaceInfo struct {
	Addrs    []string
	ByteSent uint64
	ByteRecv uint64
}

type MemInfo

type MemInfo struct {
	Total     uint64
	Used      uint64
	Available uint64
}

type StatusPercent

type StatusPercent struct {
	CPU  float64
	Disk float64
	Mem  float64
	Swap float64
}

type StatusServer

type StatusServer struct {
	Percent  StatusPercent
	CPU      []CPUInfo
	Mem      MemInfo
	Swap     SwapInfo
	Load     *load.AvgStat
	Network  map[string]InterfaceInfo
	BootTime uint64
	Uptime   uint64
}

type SwapInfo

type SwapInfo struct {
	Total     uint64
	Used      uint64
	Available uint64
}

Jump to

Keyboard shortcuts

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