checker

package
v0.0.0-...-3bd56f2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const KafkaType = Type("kafka")
View Source
const NoneType = Type("none")
View Source
const PrometheusType = Type("prometheus")

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	Start() error
	Check() ([]CheckerSuccess, []CheckerError)
}

func Get

func Get(consulClient tools.Consul, checker Model) (Checker, error)

type CheckerError

type CheckerError interface {
	Details() map[string]interface{}
}

type CheckerSuccess

type CheckerSuccess interface {
	Details() map[string]interface{}
}

type Model

type Model struct {
	Type   Type            `json:"type"`
	Config json.RawMessage `json:"config"`
}

type PrometheusCheckError

type PrometheusCheckError struct {
	Query  prometheusCheck
	Val    float64
	Reason string
}

func (PrometheusCheckError) Details

func (err PrometheusCheckError) Details() map[string]interface{}

type PrometheusCheckOk

type PrometheusCheckOk struct {
	Query prometheusCheck
	Val   float64
}

func (PrometheusCheckOk) Details

func (ok PrometheusCheckOk) Details() map[string]interface{}

type Type

type Type string

Jump to

Keyboard shortcuts

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