[v3.2] Add grafana dashboard importing API (#11)

* Add API to import grafana templates to kubesphere dashboard
* Merge and fix the latest codes from kubesphere #2501

Signed-off-by: zhu733756 <talonzhu@yunify.com>
This commit is contained in:
zhu733756
2021-08-16 11:41:29 +08:00
committed by zhu733756
parent 9df6df5544
commit 242ceb54f6
217 changed files with 119028 additions and 96 deletions

7
vendor/github.com/grafana-tools/sdk/snapshot.go generated vendored Normal file
View File

@@ -0,0 +1,7 @@
package sdk
// CreateSnapshotRequest is representation of a snapshot request.
type CreateSnapshotRequest struct {
Expires uint `json:"expires"`
Dashboard Board `json:"dashboard"`
}