mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 22:37:27 -08:00
Fix acronym caps in GeneratorURL.
Change-Id: Ib18c1f617dcde1039e848059545a6d8831d9bf66
This commit is contained in:
parent
0ae1d8889a
commit
6eecee55b7
|
@ -66,7 +66,7 @@ type NotificationReq struct {
|
||||||
// A textual representation of the rule that triggered the alert.
|
// A textual representation of the rule that triggered the alert.
|
||||||
RuleString string
|
RuleString string
|
||||||
// Prometheus console link to alert expression.
|
// Prometheus console link to alert expression.
|
||||||
GeneratorUrl string
|
GeneratorURL string
|
||||||
}
|
}
|
||||||
|
|
||||||
type NotificationReqs []*NotificationReq
|
type NotificationReqs []*NotificationReq
|
||||||
|
@ -139,7 +139,7 @@ func (n *NotificationHandler) sendNotifications(reqs NotificationReqs) error {
|
||||||
"Payload": map[string]interface{}{
|
"Payload": map[string]interface{}{
|
||||||
"Value": req.Value,
|
"Value": req.Value,
|
||||||
"ActiveSince": req.ActiveSince,
|
"ActiveSince": req.ActiveSince,
|
||||||
"GeneratorUrl": req.GeneratorUrl,
|
"GeneratorURL": req.GeneratorURL,
|
||||||
"AlertingRule": req.RuleString,
|
"AlertingRule": req.RuleString,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -185,7 +185,7 @@ func (m *ruleManager) queueAlertNotifications(rule *rules.AlertingRule, timestam
|
||||||
Value: aa.Value,
|
Value: aa.Value,
|
||||||
ActiveSince: aa.ActiveSince.Time(),
|
ActiveSince: aa.ActiveSince.Time(),
|
||||||
RuleString: rule.String(),
|
RuleString: rule.String(),
|
||||||
GeneratorUrl: m.prometheusUrl + rules.GraphLinkForExpression(rule.Vector.String()),
|
GeneratorURL: m.prometheusUrl + rules.GraphLinkForExpression(rule.Vector.String()),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
m.notificationHandler.SubmitReqs(notifications)
|
m.notificationHandler.SubmitReqs(notifications)
|
||||||
|
|
Loading…
Reference in a new issue