Documentation
¶
Index ¶
Constants ¶
View Source
const ( MatchEqual MatchType = "=" MatchNotEqual = "!=" MatchRegexp = "=~" MatchNotRegexp = "!~" )
Possible MatchTypes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LabelMatcher ¶ added in v1.23.0
type LabelMatcher struct {
Type MatchType `json:"type"`
Name string `json:"name"`
Value string `json:"value"`
}
func CheckAndRemoveDuplicated ¶ added in v1.23.0
func CheckAndRemoveDuplicated(ms []LabelMatcher) ([]LabelMatcher, error)
func (*LabelMatcher) String ¶ added in v1.23.0
func (m *LabelMatcher) String() string
func (*LabelMatcher) ToPromqlLabelMatcher ¶ added in v1.23.0
func (m *LabelMatcher) ToPromqlLabelMatcher() *labels.Matcher
type MatchType ¶ added in v1.23.0
type MatchType string
MatchType is an enum for label matching types.
type Query ¶
func (*Query) AddLabelMatchers ¶ added in v1.22.0
func (*Query) GetVectorSelectors ¶ added in v1.22.0
Click to show internal directories.
Click to hide internal directories.