feat(alerting): alert rule selector

This commit is contained in:
bergquist
2016-05-23 10:07:04 +02:00
parent 411178d384
commit f05cae23d2
4 changed files with 76 additions and 30 deletions
+12 -6
View File
@@ -19,17 +19,23 @@ type AlertRule struct {
WarnOperator string `json:"warnOperator"`
CritOperator string `json:"critOperator"`
Interval string `json:"interval"`
//Frequency int64 `json:"frequency"`
Title string `json:"title"`
Description string `json:"description"`
QueryRange string `json:"queryRange"`
Aggregator string `json:"aggregator"`
State string `json:"state"`
Frequency int64 `json:"frequency"`
Title string `json:"title"`
Description string `json:"description"`
QueryRange string `json:"queryRange"`
Aggregator string `json:"aggregator"`
State string `json:"state"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
}
type HeartBeat struct {
ServerId string
Updated time.Time
Created time.Time
}
type AlertRuleChange struct {
Id int64 `json:"id"`
OrgId int64 `json:"-"`