mirror of
https://github.com/prometheus/alertmanager
synced 2025-02-16 18:47:10 +00:00
minor godoc improvements
Signed-off-by: Paul Gier <pgier@redhat.com>
This commit is contained in:
parent
74fa2236f7
commit
2d483fac88
@ -47,6 +47,7 @@ func (s ByAlphabetical) Less(i, j int) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// GetAlertmanagerURL appends the given path to the alertmanager base URL
|
||||
func GetAlertmanagerURL(p string) url.URL {
|
||||
amURL := *alertmanagerURL
|
||||
amURL.Path = path.Join(alertmanagerURL.Path, p)
|
||||
@ -145,7 +146,7 @@ func parseLabels(inputLabels []string) (models.LabelSet, error) {
|
||||
return labelSet, nil
|
||||
}
|
||||
|
||||
// TypeMatchers Only valid for when you are going to add a silence
|
||||
// TypeMatchers only valid for when you are going to add a silence
|
||||
func TypeMatchers(matchers []labels.Matcher) (models.Matchers, error) {
|
||||
typeMatchers := models.Matchers{}
|
||||
for _, matcher := range matchers {
|
||||
@ -158,7 +159,7 @@ func TypeMatchers(matchers []labels.Matcher) (models.Matchers, error) {
|
||||
return typeMatchers, nil
|
||||
}
|
||||
|
||||
// TypeMatcher Only valid for when you are going to add a silence
|
||||
// TypeMatcher only valid for when you are going to add a silence
|
||||
// Doesn't allow negative operators
|
||||
func TypeMatcher(matcher labels.Matcher) (models.Matcher, error) {
|
||||
name := matcher.Name
|
||||
|
Loading…
Reference in New Issue
Block a user