checks

package
v0.99.35 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2017 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSkipCheck = errors.New("skip check result")
)

Functions

func CollectSystemInfo added in v0.99.34

func CollectSystemInfo(cfg *config.AgentConfig) (*model.SystemInfo, error)

Types

type Check added in v0.99.32

type Check interface {
	Name() string
	Run(cfg *config.AgentConfig, groupID int32) ([]model.MessageBody, error)
}

type ConnectionsCheck added in v0.99.32

type ConnectionsCheck struct{}

func NewConnectionsCheck added in v0.99.34

func NewConnectionsCheck(cfg *config.AgentConfig, sysInfo *model.SystemInfo) *ConnectionsCheck

func (*ConnectionsCheck) Name added in v0.99.34

func (c *ConnectionsCheck) Name() string

func (*ConnectionsCheck) Run added in v0.99.32

func (c *ConnectionsCheck) Run(cfg *config.AgentConfig, groupID int32) ([]model.MessageBody, error)

type ProcessCheck added in v0.99.32

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

func NewProcessCheck added in v0.99.33

func NewProcessCheck(cfg *config.AgentConfig, info *model.SystemInfo) *ProcessCheck

func (*ProcessCheck) Name added in v0.99.34

func (p *ProcessCheck) Name() string

func (*ProcessCheck) Run added in v0.99.32

func (p *ProcessCheck) Run(cfg *config.AgentConfig, groupID int32) ([]model.MessageBody, error)

type RealTimeCheck added in v0.99.32

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

func NewRealTimeCheck added in v0.99.34

func NewRealTimeCheck(cfg *config.AgentConfig, sysInfo *model.SystemInfo) *RealTimeCheck

func (*RealTimeCheck) Name added in v0.99.34

func (r *RealTimeCheck) Name() string

func (*RealTimeCheck) Run added in v0.99.32

func (r *RealTimeCheck) Run(cfg *config.AgentConfig, groupID int32) ([]model.MessageBody, error)

Jump to

Keyboard shortcuts

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