From 6eecee55b71d7ad0c2bfb5da2e25c34af4bef9ba Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Mon, 27 Oct 2014 16:59:38 +0100 Subject: [PATCH] Fix acronym caps in GeneratorURL. Change-Id: Ib18c1f617dcde1039e848059545a6d8831d9bf66 --- notification/notification.go | 4 ++-- rules/manager/manager.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notification/notification.go b/notification/notification.go index 3035b0629..b08ac196c 100644 --- a/notification/notification.go +++ b/notification/notification.go @@ -66,7 +66,7 @@ type NotificationReq struct { // A textual representation of the rule that triggered the alert. RuleString string // Prometheus console link to alert expression. - GeneratorUrl string + GeneratorURL string } type NotificationReqs []*NotificationReq @@ -139,7 +139,7 @@ func (n *NotificationHandler) sendNotifications(reqs NotificationReqs) error { "Payload": map[string]interface{}{ "Value": req.Value, "ActiveSince": req.ActiveSince, - "GeneratorUrl": req.GeneratorUrl, + "GeneratorURL": req.GeneratorURL, "AlertingRule": req.RuleString, }, }) diff --git a/rules/manager/manager.go b/rules/manager/manager.go index f15e57c90..ecff523ff 100644 --- a/rules/manager/manager.go +++ b/rules/manager/manager.go @@ -185,7 +185,7 @@ func (m *ruleManager) queueAlertNotifications(rule *rules.AlertingRule, timestam Value: aa.Value, ActiveSince: aa.ActiveSince.Time(), RuleString: rule.String(), - GeneratorUrl: m.prometheusUrl + rules.GraphLinkForExpression(rule.Vector.String()), + GeneratorURL: m.prometheusUrl + rules.GraphLinkForExpression(rule.Vector.String()), }) } m.notificationHandler.SubmitReqs(notifications)