Added expire option to dashboard snapshots, #1623

This commit is contained in:
Torkel Ödegaard
2015-03-26 12:00:52 +01:00
parent 722d74a41b
commit b1f85dc8f1
12 changed files with 86 additions and 65 deletions

View File

@@ -4,9 +4,10 @@ import "time"
// DashboardSnapshot model
type DashboardSnapshot struct {
Id int64
Name string
Key string
Id int64
Name string
Key string
OrgId int64
Expires time.Time
Created time.Time
@@ -20,9 +21,11 @@ type DashboardSnapshot struct {
type CreateDashboardSnapshotCommand struct {
Dashboard map[string]interface{} `json:"dashboard" binding:"Required"`
External bool
External bool `json:"external"`
Expires int64 `json:"expires"`
Key string `json:"-"`
OrgId int64 `json:"-"`
Key string `json:"-"`
Result *DashboardSnapshot
}