diff --git a/go.mod b/go.mod index 8f10ec3d..1a468796 100644 --- a/go.mod +++ b/go.mod @@ -4,10 +4,8 @@ go 1.13 require ( github.com/gosimple/slug v1.9.0 // indirect - github.com/grafana-tools/sdk v0.0.0-20210301100910-d23004341fc8 + github.com/grafana-tools/sdk v0.0.0-20210402150123-f7c763c3738c github.com/spf13/cobra v1.1.3 github.com/stretchr/testify v1.4.0 gopkg.in/yaml.v2 v2.4.0 ) - -replace github.com/grafana-tools/sdk => ../sdk diff --git a/go.sum b/go.sum index 5fe006ae..7856409d 100644 --- a/go.sum +++ b/go.sum @@ -83,6 +83,8 @@ github.com/gosimple/slug v1.1.1 h1:fRu/digW+NMwBIP+RmviTK97Ho/bEj/C9swrCspN3D4= github.com/gosimple/slug v1.1.1/go.mod h1:ER78kgg1Mv0NQGlXiDe57DpCyfbNywXXZ9mIorhxAf0= github.com/gosimple/slug v1.9.0 h1:r5vDcYrFz9BmfIAMC829un9hq7hKM4cHUrsv36LbEqs= github.com/gosimple/slug v1.9.0/go.mod h1:AMZ+sOVe65uByN3kgEyf9WEBKBCSS+dJjMX9x4vDJbg= +github.com/grafana-tools/sdk v0.0.0-20210402150123-f7c763c3738c h1:PxbQpT+CoC6wo0Nc8z7KAzeDu455FfLnqsZXRBpFWOA= +github.com/grafana-tools/sdk v0.0.0-20210402150123-f7c763c3738c/go.mod h1:uby+6hPUCRVNG/iAZKCOlaq5YhyK0oKMRke+FDesZdw= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= diff --git a/vendor/github.com/grafana-tools/sdk/README.md b/vendor/github.com/grafana-tools/sdk/README.md index d4b15a49..17390317 100644 --- a/vendor/github.com/grafana-tools/sdk/README.md +++ b/vendor/github.com/grafana-tools/sdk/README.md @@ -34,6 +34,8 @@ library is useful per se. ```go board := sdk.NewBoard("Sample dashboard title") board.ID = 1 + board.Time.From = "now-30m" + board.Time.To = "now" row1 := board.AddRow("Sample row title") row1.Add(sdk.NewGraph("Sample graph")) graph := sdk.NewGraph("Sample graph 2") diff --git a/vendor/github.com/grafana-tools/sdk/org.go b/vendor/github.com/grafana-tools/sdk/org.go index d054f088..4644f95d 100644 --- a/vendor/github.com/grafana-tools/sdk/org.go +++ b/vendor/github.com/grafana-tools/sdk/org.go @@ -25,7 +25,7 @@ type Org struct { } type OrgUser struct { - ID uint `json:"id"` + ID uint `json:"userId"` OrgId uint `json:"orgId"` Email string `json:"email"` Login string `json:"login"` diff --git a/vendor/modules.txt b/vendor/modules.txt index 28f15488..4ebca324 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -2,7 +2,7 @@ github.com/davecgh/go-spew/spew # github.com/gosimple/slug v1.9.0 github.com/gosimple/slug -# github.com/grafana-tools/sdk v0.0.0-20210301100910-d23004341fc8 => ../sdk +# github.com/grafana-tools/sdk v0.0.0-20210402150123-f7c763c3738c github.com/grafana-tools/sdk # github.com/inconshreveable/mousetrap v1.0.0 github.com/inconshreveable/mousetrap