feat(alerting): working on image rendering with alert notifications

This commit is contained in:
Torkel Ödegaard
2016-07-29 14:55:02 +02:00
parent f9a28d3306
commit 4fc50742a0
7 changed files with 106 additions and 22 deletions
+24
View File
@@ -0,0 +1,24 @@
package models
import (
"time"
"github.com/grafana/grafana/pkg/components/simplejson"
)
type AnnotationType string
type Annotation struct {
Id int64
OrgId int64
Type AnnotationType
Title string
Text string
AlertId int64
UserId int64
PreviousState string
NewState string
Timestamp time.Time
Data *simplejson.Json
}
-22
View File
@@ -1,22 +0,0 @@
package models
import (
"time"
"github.com/grafana/grafana/pkg/components/simplejson"
)
type AnnotationType string
type AnnotationEvent struct {
Id int64
OrgId int64
Type AnnotationType
Title string
Text string
AlertId int64
UserId int64
Timestamp time.Time
Data *simplejson.Json
}