mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 03:12:13 +08:00
feat(alerting): notification query
This commit is contained in:
44
pkg/models/alert_notifications.go
Normal file
44
pkg/models/alert_notifications.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user