Skip to content

Commit 2cc146e

Browse files
[FIX] grafana api breakingchange (#23)
* [FIX] Grafana API breaking change * [FEATURE] Upgrading Version
1 parent ebc0980 commit 2cc146e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.1
1+
1.2.2

internal/grafana/client.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package grafana
22

33
import (
44
"io/ioutil"
5+
"net/url"
56
"strings"
67
"time"
78

@@ -81,8 +82,8 @@ func GetDashboardInfo(config GrafanaConfig) ([]DashboardInfo, error) {
8182
}
8283

8384
start := time.Now()
84-
dashboards, err := c.FolderDashboardSearch(map[string]string{
85-
"type": "dash-db",
85+
dashboards, err := c.FolderDashboardSearch(url.Values{
86+
"type": []string{"dash-db"},
8687
})
8788

8889
elapsedSeconds := time.Since(start).Seconds()

0 commit comments

Comments
 (0)