Snapshot name is saved in DB now

This commit is contained in:
utkarshcmu
2016-01-19 00:26:20 -08:00
parent 870775e863
commit 70481953fd
4 changed files with 6 additions and 2 deletions
+3 -2
View File
@@ -25,6 +25,7 @@ type DashboardSnapshot struct {
type CreateDashboardSnapshotCommand struct {
Dashboard map[string]interface{} `json:"dashboard" binding:"Required"`
Name string `json:"name" binding:"Required"`
Expires int64 `json:"expires"`
// these are passed when storing an external snapshot ref
@@ -32,8 +33,8 @@ type CreateDashboardSnapshotCommand struct {
Key string `json:"key"`
DeleteKey string `json:"deleteKey"`
OrgId int64 `json:"-"`
UserId int64 `json:"-"`
OrgId int64 `json:"-"`
UserId int64 `json:"-"`
Result *DashboardSnapshot
}