alerts

package
v0.0.0-...-558f87b Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2016 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notify

func Notify(policy *models.AlertPolicy, node *models.Node, problem error)

func Run

func Run()

Types

type CheckNagios

type CheckNagios struct {
	Policy *models.AlertPolicy
	Plugin string
	Params string
}

func NewCheckNagios

func NewCheckNagios(policy *models.AlertPolicy) (*CheckNagios, error)

func (*CheckNagios) HandleTargetKarhu

func (c *CheckNagios) HandleTargetKarhu() error

func (*CheckNagios) HandleTargetNode

func (c *CheckNagios) HandleTargetNode(node *models.Node) error

type TargetKarhuHandler

type TargetKarhuHandler interface {
	HandleTargetKarhu() error
}

type TargetNodeHandler

type TargetNodeHandler interface {
	HandleTargetNode(*models.Node) error
}

Jump to

Keyboard shortcuts

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