alert_notifications.go 678 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package models
  2. import (
  3. "time"
  4. "github.com/grafana/grafana/pkg/components/simplejson"
  5. )
  6. type AlertNotification struct {
  7. Id int64
  8. OrgId int64
  9. Name string
  10. Type string
  11. Settings *simplejson.Json
  12. Created time.Time
  13. Updated time.Time
  14. }
  15. type CreateAlertNotificationCommand struct {
  16. Name string
  17. Type string
  18. OrgID int64
  19. Settings *simplejson.Json
  20. Result *AlertNotification
  21. }
  22. type UpdateAlertNotificationCommand struct {
  23. Name string
  24. Type string
  25. OrgID int64
  26. Settings *simplejson.Json
  27. Result *AlertNotification
  28. }
  29. type GetAlertNotificationQuery struct {
  30. Name string
  31. ID int64
  32. OrgID int64
  33. Result []*AlertNotification
  34. }