Skip to content

Commit

Permalink
Merge pull request #265 from K-Phoen/folder-parent-uid
Browse files Browse the repository at this point in the history
Parse parentUid for folders
  • Loading branch information
K-Phoen authored Jun 18, 2024
2 parents 234e2b7 + e135fa3 commit 16e9467
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions folders.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ var ErrFolderNotFound = errors.New("folder not found")
// Folder represents a dashboard folder.
// See https://grafana.com/docs/grafana/latest/reference/dashboard_folders/
type Folder struct {
ID uint `json:"id"`
UID string `json:"uid"`
Title string `json:"title"`
ID uint `json:"id"`
UID string `json:"uid"`
ParentUID string `json:"parentUid"`
Title string `json:"title"`
}

// FindOrCreateFolder returns the folder by its name or creates it if it doesn't exist.
Expand Down

0 comments on commit 16e9467

Please sign in to comment.