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 CheckStatus ¶
type CheckStatus uint8
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
Click to show internal directories.
Click to hide internal directories.