feat(alerting): progress on alerting UI and model, refactoring of dashboard parser and tests into extractor component, moved tests from sqlstore to alerting package

This commit is contained in:
Torkel Ödegaard
2016-06-11 10:13:33 +02:00
parent 1fa9ae810b
commit 2b4a9954b1
13 changed files with 439 additions and 268 deletions
+6 -1
View File
@@ -14,6 +14,9 @@ type AlertRuleModel struct {
Name string
Description string
State string
Scheduler int64
Enabled bool
Frequency int
Created time.Time
Updated time.Time
@@ -21,6 +24,8 @@ type AlertRuleModel struct {
Expression *simplejson.Json
}
type AlertRules []*AlertRuleModel
func (this AlertRuleModel) TableName() string {
return "alert_rule"
}
@@ -83,7 +88,7 @@ type SaveAlertsCommand struct {
UserId int64
OrgId int64
Alerts []*AlertRuleModel
Alerts AlertRules
}
type DeleteAlertCommand struct {