Documentation ¶
Index ¶
- Constants
- type CPUCheck
- func (c *CPUCheck) Configure(data check.ConfigData, initConfig check.ConfigData) error
- func (c *CPUCheck) GetMetricStats() (map[string]int64, error)
- func (c *CPUCheck) GetWarnings() []error
- func (c *CPUCheck) ID() check.ID
- func (c *CPUCheck) Interval() time.Duration
- func (c *CPUCheck) Run() error
- func (c *CPUCheck) Stop()
- func (c *CPUCheck) String() string
- type IOCheck
- func (c *IOCheck) Configure(data check.ConfigData, initConfig check.ConfigData) error
- func (c *IOCheck) GetMetricStats() (map[string]int64, error)
- func (c *IOCheck) GetWarnings() []error
- func (c *IOCheck) ID() check.ID
- func (c *IOCheck) Interval() time.Duration
- func (c *IOCheck) Run() error
- func (c *IOCheck) Stop()
- func (c *IOCheck) String() string
- type LoadCheck
- func (c *LoadCheck) Configure(data check.ConfigData, initConfig check.ConfigData) error
- func (c *LoadCheck) GetMetricStats() (map[string]int64, error)
- func (c *LoadCheck) GetWarnings() []error
- func (c *LoadCheck) ID() check.ID
- func (c *LoadCheck) Interval() time.Duration
- func (c *LoadCheck) Run() error
- func (c *LoadCheck) Stop()
- func (c *LoadCheck) String() string
- type MemoryCheck
- func (c *MemoryCheck) Configure(data check.ConfigData, initConfig check.ConfigData) error
- func (c *MemoryCheck) GetMetricStats() (map[string]int64, error)
- func (c *MemoryCheck) GetWarnings() []error
- func (c *MemoryCheck) ID() check.ID
- func (c *MemoryCheck) Interval() time.Duration
- func (c *MemoryCheck) Run() error
- func (c *MemoryCheck) Stop()
- func (c *MemoryCheck) String() string
- type UptimeCheck
- func (c *UptimeCheck) Configure(data check.ConfigData, initConfig check.ConfigData) error
- func (c *UptimeCheck) GetMetricStats() (map[string]int64, error)
- func (c *UptimeCheck) GetWarnings() []error
- func (c *UptimeCheck) ID() check.ID
- func (c *UptimeCheck) Interval() time.Duration
- func (c *UptimeCheck) Run() error
- func (c *UptimeCheck) Stop()
- func (c *UptimeCheck) String() string
Constants ¶
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 ¶
GetMetricStats returns the stats from the last run of the check
func (*CPUCheck) GetWarnings ¶
GetWarnings grabs the last warnings from the sender
func (*CPUCheck) ID ¶
ID returns the name of the check since there should be only one instance running
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 ¶
GetMetricStats returns the stats from the last run of the check
func (*IOCheck) GetWarnings ¶
GetWarnings grabs the last warnings from the sender
func (*IOCheck) ID ¶
ID returns the name of the check since there should be only one instance running
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 ¶
GetMetricStats returns the stats from the last run of the check
func (*LoadCheck) GetWarnings ¶
GetWarnings grabs the last warnings from the sender
func (*LoadCheck) ID ¶
ID returns the name of the check since there should be only one instance running
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) 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) String ¶
func (c *UptimeCheck) String() string