Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterSet ¶
type FilterSet struct {
// contains filtered or unexported fields
}
FilterSet is a collection of datapont filters, any one of which must match for a datapoint to be matched.
func NewFilterSet ¶
func NewFilterSet(excludes []MetricFilter, includes []MetricFilter) (*FilterSet, error)
type MetricFilter ¶
type StringFilter ¶
type StringFilter struct {
// contains filtered or unexported fields
}
StringFilter will match if any one of the given strings is a match.
func NewStringFilter ¶
func NewStringFilter(items []string) (*StringFilter, error)
NewStringFilter returns a filter that can match against the provided items.
func (*StringFilter) Matches ¶
func (f *StringFilter) Matches(s string) bool
Matches if s is positively matched by the filter items OR if it is positively matched by a non-glob/regex pattern exactly and is negated as well. See the unit tests for examples.
func (*StringFilter) UnmarshalText ¶
func (f *StringFilter) UnmarshalText(in []byte) error
Click to show internal directories.
Click to hide internal directories.