console: dynamically fetch available dimensions

This commit is contained in:
Vincent Bernat
2022-05-16 10:11:12 +02:00
parent 42545c9a11
commit 34f153d9cd
10 changed files with 224 additions and 94 deletions

View File

@@ -82,6 +82,7 @@ func (c *Component) Start() error {
c.d.HTTP.GinRouter.GET("/api/v0/console/widget/top/:name", c.widgetTopHandlerFunc)
c.d.HTTP.GinRouter.GET("/api/v0/console/widget/graph", c.widgetGraphHandlerFunc)
c.d.HTTP.GinRouter.POST("/api/v0/console/graph", c.graphHandlerFunc)
c.d.HTTP.GinRouter.GET("/api/v0/console/graph/fields", c.graphFieldsHandlerFunc)
c.t.Go(func() error {
ticker := time.NewTicker(10 * time.Second)