annotation.go 399 B

123456789101112131415161718192021222324
  1. package models
  2. import (
  3. "time"
  4. "github.com/grafana/grafana/pkg/components/simplejson"
  5. )
  6. type AnnotationType string
  7. type Annotation struct {
  8. Id int64
  9. OrgId int64
  10. Type AnnotationType
  11. Title string
  12. Text string
  13. AlertId int64
  14. UserId int64
  15. PreviousState string
  16. NewState string
  17. Timestamp time.Time
  18. Data *simplejson.Json
  19. }