Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
type Func func(group string, spec *definition.Spec, ent *integration.Entity) bool
Func is a function that returns true if a particular metric (spec) should be excluded from being asserted on ent. If a Func returns true for a given group, metric (spec) and entity, Asserter will not fail even if the metric is not found.
func Dependent ¶
Dependent receives a map between a metric name and other metric names that depend on it, and returns an Func that will exclude the dependencies if the dependent is not present.
func Exclude ¶
Exclude returns a Func that returns true if all the supplied ExcludeFuncs return true. Input ExcludeFuncs are evaluated in order, so this function makes easy to compose exclusion rules.
Click to show internal directories.
Click to hide internal directories.