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 ¶
type LabelMatcher struct { Type MatchType `json:"type"` Name string `json:"name"` Value string `json:"value"` }
func CheckAndRemoveDuplicated ¶
func CheckAndRemoveDuplicated(ms []LabelMatcher) ([]LabelMatcher, error)
func (*LabelMatcher) String ¶
func (m *LabelMatcher) String() string
func (*LabelMatcher) ToPromqlLabelMatcher ¶
func (m *LabelMatcher) ToPromqlLabelMatcher() *labels.Matcher
Click to show internal directories.
Click to hide internal directories.