Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyCondition = errors.New("rule condition cannot be empty") ErrInvalidSyntax = errors.New("invalid rule syntax") )
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct {
Name string `yaml:"name"`
Condition string `yaml:"condition"`
Tags []string `yaml:"tags"`
Notifications []string `yaml:"notifications"`
}
func (Rule) GetNotificationTypes ¶
type RuleResult ¶
func EvaluateCertRule ¶
func EvaluateCertRule(rule CertRule, certExpiryTime time.Time) RuleResult
func EvaluateRule ¶
func EvaluateRule(rule Rule, downtime, responseTime time.Duration) RuleResult
Click to show internal directories.
Click to hide internal directories.