feat(alerting): notification query

This commit is contained in:
bergquist
2016-06-13 16:39:00 +02:00
parent 779ea55ee0
commit 8b91e57ef6
5 changed files with 153 additions and 0 deletions

View File

@ -0,0 +1,44 @@
package models
import (
"time"
"github.com/grafana/grafana/pkg/components/simplejson"
)
type AlertNotification struct {
Id int64
OrgId int64
Name string
Type string
Settings *simplejson.Json
Created time.Time
Updated time.Time
}
type CreateAlertNotificationCommand struct {
Name string
Type string
OrgID int64
Settings *simplejson.Json
Result *AlertNotification
}
type UpdateAlertNotificationCommand struct {
Name string
Type string
OrgID int64
Settings *simplejson.Json
Result *AlertNotification
}
type GetAlertNotificationQuery struct {
Name string
ID int64
OrgID int64
Result []*AlertNotification
}