feat(alerting): rename alerting dashboard names

This commit is contained in:
bergquist
2016-04-26 16:06:29 +02:00
parent 3ef2be13df
commit 55e83a3d62
4 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -43,13 +43,13 @@ func (cmd *SaveDashboardCommand) GetAlertModels() *[]AlertRule {
OrgId: cmd.Result.OrgId,
PanelId: panel.Get("id").MustInt64(),
Id: alerting.Get("id").MustInt64(),
QueryRefId: alerting.Get("query_ref").MustString(),
WarnLevel: alerting.Get("warn_level").MustString(),
CritLevel: alerting.Get("crit_level").MustString(),
QueryRefId: alerting.Get("queryRef").MustString(),
WarnLevel: alerting.Get("warnLevel").MustString(),
CritLevel: alerting.Get("critLevel").MustString(),
Interval: alerting.Get("interval").MustString(),
Title: alerting.Get("title").MustString(),
Description: alerting.Get("description").MustString(),
QueryRange: alerting.Get("query_range").MustString(),
QueryRange: alerting.Get("queryRange").MustString(),
Aggregator: alerting.Get("aggregator").MustString(),
}
+4 -4
View File
@@ -67,12 +67,12 @@ func TestAlertModel(t *testing.T) {
"stack": false,
"steppedLine": false,
"alerting": {
"query_ref": "A",
"warn_level": "> 30",
"crit_level": "> 50",
"queryRef": "A",
"warnLevel": "> 30",
"critLevel": "> 50",
"title": "desktop visiter alerts",
"description": "Restart the webservers",
"query_range": "5m",
"queryRange": "5m",
"aggregator": "avg",
"interval": "10"
},