mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
common/schema: namespace column members by subsystem
Otherwise, it will be a mess once we introduce IPFIX/sFlow specific fields
This commit is contained in:
@@ -62,11 +62,19 @@ func DefaultConfiguration() Configuration {
|
||||
}
|
||||
|
||||
func (c *Component) configHandlerFunc(gc *gin.Context) {
|
||||
dimensions := []string{}
|
||||
for pair := schema.Flows.Columns.Front(); pair != nil; pair = pair.Next() {
|
||||
column := pair.Value
|
||||
if column.ConsoleNotDimension {
|
||||
continue
|
||||
}
|
||||
dimensions = append(dimensions, column.Name)
|
||||
}
|
||||
gc.JSON(http.StatusOK, gin.H{
|
||||
"version": c.config.Version,
|
||||
"defaultVisualizeOptions": c.config.DefaultVisualizeOptions,
|
||||
"dimensionsLimit": c.config.DimensionsLimit,
|
||||
"homepageTopWidgets": c.config.HomepageTopWidgets,
|
||||
"dimensions": schema.Flows.SelectColumns(schema.SkipNotDimension),
|
||||
"dimensions": dimensions,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user