check_expression

package
v4.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckExpressionEvaluator

type CheckExpressionEvaluator struct {
	AppContext context.Context
}

func (*CheckExpressionEvaluator) CheckHTTP

func (evaluator *CheckExpressionEvaluator) CheckHTTP(hostname, scheme, port, method, user, pass string, headers map[string]string, body string) (resp *http.Response, err error)

func (*CheckExpressionEvaluator) CheckPing

func (evaluator *CheckExpressionEvaluator) CheckPing(hostname string) (outBytes []byte, err error)

func (*CheckExpressionEvaluator) CheckSSH

func (evaluator *CheckExpressionEvaluator) CheckSSH(hostname, port, user string) (outBytes []byte, err error)

func (*CheckExpressionEvaluator) EvalExpressions

func (evaluator *CheckExpressionEvaluator) EvalExpressions(checkRow *pg.CheckRow) ([]pg.CheckExpression, bool, error)

EvalExpressions reduces the result of expression into a single true/false. 1st value: List of all CheckExpression containing results. 2nd value: The value of all expressions. 3rd value: Error

func (*CheckExpressionEvaluator) EvalHTTPExpression

func (evaluator *CheckExpressionEvaluator) EvalHTTPExpression(checkRow *pg.CheckRow, hostRows []*pg.HostRow, expression pg.CheckExpression) pg.CheckExpression

func (*CheckExpressionEvaluator) EvalLogDataExpression

func (evaluator *CheckExpressionEvaluator) EvalLogDataExpression(checkRow *pg.CheckRow, hostRows []*pg.HostRow, expression pg.CheckExpression) pg.CheckExpression

func (*CheckExpressionEvaluator) EvalPingExpression

func (evaluator *CheckExpressionEvaluator) EvalPingExpression(checkRow *pg.CheckRow, hostRows []*pg.HostRow, expression pg.CheckExpression) pg.CheckExpression

func (*CheckExpressionEvaluator) EvalRawHostDataExpression

func (evaluator *CheckExpressionEvaluator) EvalRawHostDataExpression(checkRow *pg.CheckRow, hostRows []*pg.HostRow, expression pg.CheckExpression) pg.CheckExpression

func (*CheckExpressionEvaluator) EvalRelativeHostDataExpression

func (evaluator *CheckExpressionEvaluator) EvalRelativeHostDataExpression(checkRow *pg.CheckRow, hostRows []*pg.HostRow, expression pg.CheckExpression) pg.CheckExpression

func (*CheckExpressionEvaluator) EvalSSHExpression

func (evaluator *CheckExpressionEvaluator) EvalSSHExpression(checkRow *pg.CheckRow, hostRows []*pg.HostRow, expression pg.CheckExpression) pg.CheckExpression

Jump to

Keyboard shortcuts

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