Documentation ¶
Overview ¶
Package filter contains common filtering logic that can be used to filter datapoints or various resources within other agent components, such as monitors. Filter instances have a Matches function which takes an instance of the type that they filter and return whether that instance matches the filter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringFilter ¶
StringFilter matches against simple strings
func NewStringFilter ¶
func NewStringFilter(items []string) (StringFilter, error)
NewStringFilter returns a filter that can match against the provided items.
type StringMapFilter ¶
StringMapFilter matches against the values of a map[string]string.
func NewStringMapFilter ¶
func NewStringMapFilter(m map[string]string) (StringMapFilter, error)
NewStringMapFilter returns a filter that matches against the provided map. All key/value pairs must match the spec given in m for a map to be considered a match.