telemetry

package
v1.2.2-reply Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 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 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