Dashboard snapshot: more work on snapshot deletion, and saving external reference, #1623

This commit is contained in:
Torkel Ödegaard
2015-03-26 20:59:41 +01:00
parent 4322f29f34
commit 541cd2e430
4 changed files with 41 additions and 28 deletions

View File

@@ -24,15 +24,16 @@ type DashboardSnapshot struct {
// COMMANDS
type CreateDashboardSnapshotCommand struct {
Dashboard map[string]interface{} `json:"dashboard" binding:"Required"`
External bool `json:"external"`
ExternalUrl string `json:"externalUrl"`
Expires int64 `json:"expires"`
Dashboard map[string]interface{} `json:"dashboard" binding:"Required"`
Expires int64 `json:"expires"`
OrgId int64 `json:"-"`
UserId int64 `json:"-"`
Key string `json:"-"`
DeleteKey string `json:"-"`
// these are passed when storing an external snapshot ref
External bool `json:"external"`
Key string `json:"key"`
DeleteKey string `json:"deleteKey"`
OrgId int64 `json:"-"`
UserId int64 `json:"-"`
Result *DashboardSnapshot
}