feat(alerting): add alert history api endpoint

ref #5850
This commit is contained in:
bergquist
2016-08-30 09:32:56 +02:00
parent 1f1d232ea6
commit 650a87dc05
5 changed files with 92 additions and 2 deletions

View File

@@ -52,3 +52,14 @@ type EvalMatch struct {
Metric string `json:"metric"`
Value float64 `json:"value"`
}
type AlertHistory struct {
AlertId int64 `json:"alertId"`
NewState string `json:"netState"`
Timestamp time.Time `json:"timestamp"`
Title string `json:"title"`
Text string `json:"text"`
Metric string `json:"metric"`
Data *simplejson.Json `json:"data"`
}