Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CreateAction = func(props ...string) (Action, error) { return &SimpleAction{props[0]}, nil } )
Functions ¶
Types ¶
type Amount ¶
func HumanAmount ¶
type HostCheck ¶
func NewHostCheck ¶
func NewHostCheck(rules interface{}, params interface{}) *HostCheck
type ProcessCheck ¶
func NewProcessCheck ¶
func NewProcessCheck(checkType interface{}, name interface{}, rules interface{}, params interface{}) *ProcessCheck
type Rule ¶
type Rule struct { Metric RuleMetric Operator string Threshold Amount Actions []Action CycleCount int }
type RuleList ¶
type RuleList []Rule
func AppendRule ¶
func AppendRule(list interface{}, rule interface{}) RuleList
func NewRuleList ¶
func NewRuleList(rule interface{}) RuleList
type RuleMetric ¶
func Metric ¶
func Metric(family interface{}, name interface{}) (*RuleMetric, error)
type SimpleAction ¶
type SimpleAction struct {
ActionName string
}
func (*SimpleAction) Name ¶
func (s *SimpleAction) Name() string
Click to show internal directories.
Click to hide internal directories.