health

package
v0.0.0-...-d0cf9b8 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Load

type Load struct {
	// contains filtered or unexported fields
}

Load represents the system resources that the server process is consuming, in terms of CPU% and megabytes of memory.

func StartLoadMonitoring

func StartLoadMonitoring() *Load

StartLoadMonitoring begins the load monitoring. The monitor can be stopped by invoking load.Close()

func (*Load) CPU

func (l *Load) CPU() float32

CPU reports the instantaneous CPU load.

func (*Load) Close

func (l *Load) Close() error

Close will end the load monitoring.

func (*Load) Memory

func (l *Load) Memory() uint32

Memory reports the instantaneous memory load in megabytes

Jump to

Keyboard shortcuts

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