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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user