This repository was archived by the owner on Jan 15, 2024. It is now read-only.
Commit 7467880 1 parent 68bdb78 commit 7467880 Copy full SHA for 7467880
File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ type DashboardMeta struct {
12
12
IsStarred bool `json:"isStarred"`
13
13
Slug string `json:"slug"`
14
14
Folder int64 `json:"folderId"`
15
- FolderUID int64 `json:"folderUid"`
15
+ FolderUID string `json:"folderUid"`
16
16
URL string `json:"url"`
17
17
}
18
18
@@ -27,10 +27,12 @@ type DashboardSaveResponse struct {
27
27
28
28
// Dashboard represents a Grafana dashboard.
29
29
type Dashboard struct {
30
- Meta DashboardMeta `json:"meta"`
31
30
Model map [string ]interface {} `json:"dashboard"`
32
31
FolderID int64 `json:"folderId"`
33
32
33
+ // This field is read-only. It is not used when creating a new dashboard.
34
+ Meta DashboardMeta `json:"meta"`
35
+
34
36
// These fields are only used when creating a new dashboard, they will always be empty when getting a dashboard.
35
37
Overwrite bool `json:"overwrite,omitempty"`
36
38
Message string `json:"message,omitempty"`
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ const (
26
26
"meta": {
27
27
"isStarred": false,
28
28
"url": "/d/cIBgcSjkk/production-overview",
29
- "slug": "production-overview"
29
+ "slug": "production-overview",
30
+ "folderID": 3,
31
+ "folderUid": "test"
30
32
}
31
33
}`
32
34
You can’t perform that action at this time.
0 commit comments