Documentation
¶
Overview ¶
Package labels defines the data model for time-series label pairs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Label ¶
Label is a name/value pair identifying a time series.
func FromStrings ¶
FromStrings creates a sorted label set from alternating name/value pairs. Panics if an odd number of strings is provided.
type Matcher ¶
type Matcher struct {
Type MatchType
Name string
Value string
// contains filtered or unexported fields
}
Matcher matches label values against a pattern.
func MustNewMatcher ¶
MustNewMatcher is like NewMatcher but panics on error.
func NewMatcher ¶
NewMatcher creates a new Matcher. For regex types, the value is compiled as a full-match regular expression (anchored with ^(?:...)$).
Click to show internal directories.
Click to hide internal directories.