package
Version:
v0.0.0-...-9741fed
Opens a new window with list of versions in this module.
Published: Nov 14, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
MatchType is an enum for label matching types.
const (
MatchEqual MatchType = iota
MatchNotEqual
MatchRegexp
MatchNotRegexp
)
Possible MatchTypes.
type Matcher struct {
Type MatchType `json:"type"`
Name string `json:"name"`
Value string `json:"value"`
}
Matcher models the matching of a label.
NewMatcher returns a matcher object.
Matches returns whether the matcher matches the given string value.
Matchers is of matchers
ToTags converts Matchers to Tags
NB (braskin): this only works for exact matches
Metric is the individual metric that gets returned from the search endpoint
Metrics is a list of individual metrics
Tags is a key/value map of metric tags.
ID returns a string representation of the tags
Source Files
¶
Click to show internal directories.
Click to hide internal directories.