refactor(grafana): rework grafana package and make it more modular
This commit is contained in:
parent
cfcf3c6c2b
commit
7ce90dacc4
12 changed files with 710 additions and 282 deletions
20
pkg/grafana/schema/dashboard_version.go
Normal file
20
pkg/grafana/schema/dashboard_version.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
package schema
|
||||
|
||||
import "time"
|
||||
|
||||
type DashboardVersion struct {
|
||||
ID uint `json:"id"`
|
||||
DashboardID uint `json:"dashboardId"`
|
||||
UID string `json:"uid"`
|
||||
ParentVersion uint `json:"parentVersion"`
|
||||
RestoredFrom uint `json:"restoredFrom"`
|
||||
Version uint `json:"version"`
|
||||
Created time.Time `json:"created"`
|
||||
CreatedBy string `json:"createdBy"`
|
||||
Message string `json:"message"`
|
||||
Data any `json:"data"`
|
||||
}
|
||||
|
||||
type DashboardVersionListResponse struct {
|
||||
DashboardVersions []DashboardVersion
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue