dashboard_snapshot.go 658 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package models
  2. import "time"
  3. // DashboardSnapshot model
  4. type DashboardSnapshot struct {
  5. Id int64
  6. Name string
  7. Key string
  8. OrgId int64
  9. Expires time.Time
  10. Created time.Time
  11. Updated time.Time
  12. Dashboard map[string]interface{}
  13. }
  14. // -----------------
  15. // COMMANDS
  16. type CreateDashboardSnapshotCommand struct {
  17. Dashboard map[string]interface{} `json:"dashboard" binding:"Required"`
  18. External bool `json:"external"`
  19. Expires int64 `json:"expires"`
  20. OrgId int64 `json:"-"`
  21. Key string `json:"-"`
  22. Result *DashboardSnapshot
  23. }
  24. type GetDashboardSnapshotQuery struct {
  25. Key string
  26. Result *DashboardSnapshot
  27. }