system

package
v0.0.0-...-f3e8d88 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

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 {
	// contains filtered or unexported fields
}

CPUCheck doesn't need additional fields

func (*CPUCheck) Configure

func (c *CPUCheck) Configure(data check.ConfigData, initConfig check.ConfigData) error

Configure the CPU check doesn't need configuration

func (*CPUCheck) GetMetricStats

func (c *CPUCheck) GetMetricStats() (map[string]int64, error)

GetMetricStats returns the stats from the last run of the check

func (*CPUCheck) GetWarnings

func (c *CPUCheck) GetWarnings() []error

GetWarnings grabs the last warnings from the sender

func (*CPUCheck) ID

func (c *CPUCheck) ID() check.ID

ID returns the name of the check since there should be only one instance running

func (*CPUCheck) Interval

func (c *CPUCheck) Interval() time.Duration

Interval returns the scheduling time for the check

func (*CPUCheck) Run

func (c *CPUCheck) Run() error

Run executes the check

func (*CPUCheck) Stop

func (c *CPUCheck) Stop()

Stop does nothing

func (*CPUCheck) String

func (c *CPUCheck) String() string

type IOCheck

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

IOCheck doesn't need additional fields

func (*IOCheck) Configure

func (c *IOCheck) Configure(data check.ConfigData, initConfig check.ConfigData) error

Configure the IOstats check

func (*IOCheck) GetMetricStats

func (c *IOCheck) GetMetricStats() (map[string]int64, error)

GetMetricStats returns the stats from the last run of the check

func (*IOCheck) GetWarnings

func (c *IOCheck) GetWarnings() []error

GetWarnings grabs the last warnings from the sender

func (*IOCheck) ID

func (c *IOCheck) ID() check.ID

ID returns the name of the check since there should be only one instance running

func (*IOCheck) Interval

func (c *IOCheck) Interval() time.Duration

Interval returns the scheduling time for the check

func (*IOCheck) Run

func (c *IOCheck) Run() error

Run executes the check

func (*IOCheck) Stop

func (c *IOCheck) Stop()

Stop does nothing

func (*IOCheck) String

func (c *IOCheck) String() string

type LoadCheck

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

LoadCheck doesn't need additional fields

func (*LoadCheck) Configure

func (c *LoadCheck) Configure(data check.ConfigData, initConfig check.ConfigData) error

Configure the CPU check doesn't need configuration

func (*LoadCheck) GetMetricStats

func (c *LoadCheck) GetMetricStats() (map[string]int64, error)

GetMetricStats returns the stats from the last run of the check

func (*LoadCheck) GetWarnings

func (c *LoadCheck) GetWarnings() []error

GetWarnings grabs the last warnings from the sender

func (*LoadCheck) ID

func (c *LoadCheck) ID() check.ID

ID returns the name of the check since there should be only one instance running

func (*LoadCheck) Interval

func (c *LoadCheck) Interval() time.Duration

Interval returns the scheduling time for the check

func (*LoadCheck) Run

func (c *LoadCheck) Run() error

Run executes the check

func (*LoadCheck) Stop

func (c *LoadCheck) Stop()

Stop does nothing

func (*LoadCheck) String

func (c *LoadCheck) String() string

type MemoryCheck

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

MemoryCheck doesn't need additional fields

func (*MemoryCheck) Configure

func (c *MemoryCheck) Configure(data check.ConfigData, initConfig check.ConfigData) error

Configure the Python check from YAML data

func (*MemoryCheck) GetMetricStats

func (c *MemoryCheck) GetMetricStats() (map[string]int64, error)

GetMetricStats returns the stats from the last run of the check

func (*MemoryCheck) GetWarnings

func (c *MemoryCheck) GetWarnings() []error

GetWarnings grabs the last warnings from the sender

func (*MemoryCheck) ID

func (c *MemoryCheck) ID() check.ID

ID returns the name of the check since there should be only one instance running

func (*MemoryCheck) Interval

func (c *MemoryCheck) Interval() time.Duration

Interval returns the scheduling time for the check

func (*MemoryCheck) Run

func (c *MemoryCheck) Run() error

Run executes the check

func (*MemoryCheck) Stop

func (c *MemoryCheck) Stop()

Stop does nothing

func (*MemoryCheck) String

func (c *MemoryCheck) String() string

type UptimeCheck

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

UptimeCheck doesn't need additional fields

func (*UptimeCheck) Configure

func (c *UptimeCheck) Configure(data check.ConfigData, initConfig check.ConfigData) error

Configure the CPU check doesn't need configuration

func (*UptimeCheck) GetMetricStats

func (c *UptimeCheck) GetMetricStats() (map[string]int64, error)

GetMetricStats returns the stats from the last run of the check

func (*UptimeCheck) GetWarnings

func (c *UptimeCheck) GetWarnings() []error

GetWarnings grabs the last warnings from the sender

func (*UptimeCheck) ID

func (c *UptimeCheck) ID() check.ID

ID returns the name of the check since there should be only one instance running

func (*UptimeCheck) Interval

func (c *UptimeCheck) Interval() time.Duration

Interval returns the scheduling time for the check

func (*UptimeCheck) Run

func (c *UptimeCheck) Run() error

Run executes the check

func (*UptimeCheck) Stop

func (c *UptimeCheck) Stop()

Stop does nothing

func (*UptimeCheck) String

func (c *UptimeCheck) String() string

Jump to

Keyboard shortcuts

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