checks

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Pass     = CheckStatus(99)
	Resolved = CheckStatus(98)
	Warning  = CheckStatus(2)
	Critical = CheckStatus(1)
)

Variables

View Source
var CheckLevels = [...]CheckStatus{Warning, Critical}

Functions

func CheckStatusToString added in v0.3.3

func CheckStatusToString(result CheckStatus) string

Types

type AppCheck

type AppCheck struct {
	App       string
	CheckName string
	Result    CheckStatus
	Message   string
	Timestamp time.Time
	Labels    map[string]string
	Times     int
}

type CheckStatus

type CheckStatus uint8

type Checker

type Checker interface {
	Name() string
	Check(marathon.Application) AppCheck
}

type MinHealthyTasks

type MinHealthyTasks struct {
	// DefaultWarningThreshold - overriden using alerts.min-instances.warning
	DefaultWarningThreshold float32
	// DefaultCriticalThreshold - overriden using alerts.min-instances.fail
	DefaultCriticalThreshold float32
}

Checks for minimum healthy instances of an app running with respect to total # of instances that is supposed to run

func (*MinHealthyTasks) Check

func (n *MinHealthyTasks) Check(app marathon.Application) AppCheck

func (*MinHealthyTasks) Name

func (n *MinHealthyTasks) Name() string

type MinInstances

type MinInstances struct {
	// DefaultWarningThreshold - overriden using alerts.min-instances.warning
	DefaultWarningThreshold float32
	// DefaultCriticalThreshold - overriden using alerts.min-instances.fail
	DefaultCriticalThreshold float32
}

Checks for minimum instances of an app running with respect to total # of instances that is supposed to run

func (*MinInstances) Check

func (n *MinInstances) Check(app marathon.Application) AppCheck

func (*MinInstances) Name

func (n *MinInstances) Name() string

type SuspendedCheck

type SuspendedCheck struct{}

func (*SuspendedCheck) Check

func (n *SuspendedCheck) Check(app marathon.Application) AppCheck

func (*SuspendedCheck) Name

func (s *SuspendedCheck) Name() string

Jump to

Keyboard shortcuts

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