system

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 21 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// SectorSize is exported in github.com/shirou/gopsutil/disk (but not working!)
	SectorSize = 512
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUCheck

type CPUCheck struct {
	core.CheckBase
	// contains filtered or unexported fields
}

CPUCheck doesn't need additional fields

func (*CPUCheck) Configure

func (c *CPUCheck) Configure(data integration.Data, initConfig integration.Data, source string) error

Configure the CPU check

func (*CPUCheck) Run

func (c *CPUCheck) Run() error

Run executes the check

type DiskCheck

type DiskCheck struct {
	core.CheckBase
	// contains filtered or unexported fields
}

DiskCheck stores disk-specific additional fields

func (*DiskCheck) Configure

func (c *DiskCheck) Configure(data integration.Data, initConfig integration.Data, source string) error

Configure the disk check

func (*DiskCheck) Run

func (c *DiskCheck) Run() error

Run executes the check

type IOCheck

type IOCheck struct {
	core.CheckBase
	// contains filtered or unexported fields
}

IOCheck doesn't need additional fields

func (*IOCheck) Configure

func (c *IOCheck) Configure(data integration.Data, initConfig integration.Data, source string) error

Configure the IOstats check

func (*IOCheck) Run

func (c *IOCheck) Run() error

Run executes the check

type LoadCheck

type LoadCheck struct {
	core.CheckBase
	// contains filtered or unexported fields
}

LoadCheck doesn't need additional fields

func (*LoadCheck) Configure

func (c *LoadCheck) Configure(data integration.Data, initConfig integration.Data, source string) error

Configure the CPU check

func (*LoadCheck) Run

func (c *LoadCheck) Run() error

Run executes the check

type MemoryCheck

type MemoryCheck struct {
	core.CheckBase
}

MemoryCheck doesn't need additional fields

func (*MemoryCheck) Run

func (c *MemoryCheck) Run() error

Run executes the check

type UptimeCheck

type UptimeCheck struct {
	core.CheckBase
}

UptimeCheck doesn't need additional fields

func (*UptimeCheck) Run

func (c *UptimeCheck) Run() error

Run executes the check

Jump to

Keyboard shortcuts

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