dashboard_snapshot.go 528 B

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