feat(alerting): began work on testing alert rule from UI without having to save it

This commit is contained in:
Torkel Ödegaard
2016-07-20 16:13:36 +02:00
parent 0ce55600bb
commit fb636344a6
4 changed files with 90 additions and 1 deletions
+10 -1
View File
@@ -1,6 +1,10 @@
package dtos
import "time"
import (
"time"
"github.com/grafana/grafana/pkg/components/simplejson"
)
type AlertRuleDTO struct {
Id int64 `json:"id"`
@@ -29,3 +33,8 @@ type AlertNotificationDTO struct {
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
}
type TestAlertRuleCommand struct {
Dashboard *simplejson.Json `json:"dashboard"`
PanelId int64 `json:"panelId"`
}