shared

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResult

type CheckResult struct {
	Hostname    string
	Type        string
	ServiceName string
	Code        uint8
	Output      string
}

type CheckerRule

type CheckerRule struct {
	Check config.Check
	Name  string
}

func (*CheckerRule) Compare

func (rule *CheckerRule) Compare(value string, threshold hil.EvaluationResult) (bool, error)

func (*CheckerRule) CompareFloat64

func (rule *CheckerRule) CompareFloat64(value float64, threshold float64) (bool, error)

type InputListener

type InputListener interface {
	Emit(recordSets []RecordSet) error
}

type RecordSet

type RecordSet struct {
	Tag     string
	Records []TinyRecord
}

type TinyRecord

type TinyRecord struct {
	Timestamp uint64
	Data      map[string]interface{}
}

type Transformer

type Transformer interface {
	Emit(checkResults []CheckResult) error
}

type Writer

type Writer interface {
	Emit(check string) error
}

Jump to

Keyboard shortcuts

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