debug

package
v1.11.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MPL-2.0 Imports: 5 Imported by: 14

Documentation

Index

Constants

View Source
const (
	// DiskUsagePath is the path to check usage of the disk.
	// Must be a filesystem path such as "/", not device file path like "/dev/vda1"
	DiskUsagePath = "/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HostInfo

type HostInfo struct {
	Memory         *mem.VirtualMemoryStat
	CPU            []cpu.InfoStat
	Host           *host.InfoStat
	Disk           *disk.UsageStat
	CollectionTime int64
	Errors         []error
}

HostInfo includes information about resources on the host as well as collection time and

func CollectHostInfo

func CollectHostInfo() *HostInfo

CollectHostInfo queries the host system and returns HostInfo. Any errors encountered will be returned in HostInfo.Errors

Jump to

Keyboard shortcuts

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