feat(alerting): began work on testing alert rule from UI without having to save it
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user