alert_notifications.go 709 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. Id int64
  24. Name string
  25. Type string
  26. OrgID int64
  27. Settings *simplejson.Json
  28. Result *AlertNotification
  29. }
  30. type GetAlertNotificationQuery struct {
  31. Name string
  32. Id int64
  33. Ids []int64
  34. OrgID int64
  35. Result []*AlertNotification
  36. }