feat(alerting): shows when no_data triggered alerts

closes #7035
ref #7257
This commit is contained in:
bergquist
2017-01-17 09:49:25 +01:00
parent f29f83ca75
commit e78da57e4d
7 changed files with 29 additions and 7 deletions
+1
View File
@@ -75,6 +75,7 @@ func GetAlerts(c *middleware.Context) Response {
State: alert.State,
NewStateDate: alert.NewStateDate,
ExecutionError: alert.ExecutionError,
EvalData: alert.EvalData,
})
}
+1
View File
@@ -17,6 +17,7 @@ type AlertRule struct {
State m.AlertStateType `json:"state"`
NewStateDate time.Time `json:"newStateDate"`
EvalDate time.Time `json:"evalDate"`
EvalData *simplejson.Json `json:"evalData"`
ExecutionError string `json:"executionError"`
DashbboardUri string `json:"dashboardUri"`
}