Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHIL ¶
func ParseHIL(input string, hilConfig *hil.EvalConfig) (hil.EvaluationResult, error)
Types ¶
type Check ¶
type Check struct {
Plugin string `hcl:"plugin"`
PluginInstance string `hcl:"plugin_instance"`
Type string `hcl:"type"`
TypeInstance string `hcl:"type_instance"`
Comparator Comparator `hcl:"comparator"`
WarningTpl string `hcl:"warning"`
CriticalTpl string `hcl:"critical"`
Warning hil.EvaluationResult `hcl:"-"`
Critical hil.EvaluationResult `hcl:"-"`
ValueTpl string `hcl:"value"`
Value *template.Template `hcl:"-"`
HostThresholds CheckThresholdMap `hcl:"host"`
MetaThresholds CheckThresholdMap `hcl:"meta"`
}
type CheckThreshold ¶ added in v0.0.2
type CheckThreshold struct {
WarningTpl string `hcl:"warning"`
CriticalTpl string `hcl:"critical"`
Warning hil.EvaluationResult `hcl:"-"`
Critical hil.EvaluationResult `hcl:"-"`
Regexp *regexp.Regexp `hcl:"-"`
}
type CheckThresholdMap ¶ added in v0.1.0
type CheckThresholdMap map[string]CheckThreshold
func (CheckThresholdMap) CompileRegexp ¶ added in v0.1.1
func (m CheckThresholdMap) CompileRegexp() error
func (CheckThresholdMap) Parse ¶ added in v0.1.0
func (m CheckThresholdMap) Parse(hilConfig *hil.EvalConfig) (err error)
type Comparator ¶
type Comparator string
const ( GreaterThan Comparator = ">" GreaterThanOrEqualTo Comparator = ">=" LesserThanOrEqualTo Comparator = "<=" LesserThan Comparator = "<" )
Click to show internal directories.
Click to hide internal directories.