mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added expire option to dashboard snapshots, #1623
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user