telemetry

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvgCpuUsage

func AvgCpuUsage(init, final CpuUsage) (avg float64)

func StartCpuUsageAverage

func StartCpuUsageAverage(appWg *sync.WaitGroup, appCtx context.Context, logger logger.LoggingClient)

Types

type CpuUsage

type CpuUsage struct {
	Busy,
	Idle,
	Total uint64 // reported sum total of all usage
}

func PollCpu

func PollCpu() (cpuSnapshot CpuUsage)

type FileTime

type FileTime struct {
	// DwLowDateTime from Windows API
	LowDateTime uint32
	// DwHighDateTime from Windows API
	HighDateTime uint32
}

FILETIME Struct from: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724284.aspx

type SystemUsage

type SystemUsage struct {
	Memory     memoryUsage
	CpuBusyAvg float64
}

SystemUsage swagger:model

func NewSystemUsage

func NewSystemUsage() (s SystemUsage)

Jump to

Keyboard shortcuts

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