feat(alerting): added clear history button to alert state history view, #6244
This commit is contained in:
@@ -5,6 +5,7 @@ import "github.com/grafana/grafana/pkg/components/simplejson"
|
||||
type Repository interface {
|
||||
Save(item *Item) error
|
||||
Find(query *ItemQuery) ([]*Item, error)
|
||||
Delete(params *DeleteParams) error
|
||||
}
|
||||
|
||||
type ItemQuery struct {
|
||||
@@ -20,6 +21,12 @@ type ItemQuery struct {
|
||||
Limit int64 `json:"alertId"`
|
||||
}
|
||||
|
||||
type DeleteParams struct {
|
||||
AlertId int64 `json:"alertId"`
|
||||
DashboardId int64 `json:"dashboardId"`
|
||||
PanelId int64 `json:"panelId"`
|
||||
}
|
||||
|
||||
var repositoryInstance Repository
|
||||
|
||||
func GetRepository() Repository {
|
||||
|
||||
Reference in New Issue
Block a user