DashboardScene: Meta data tab (#74810)

* DashboardScene: Inspect meta tab

* DashboardScene: Inspect meta tab

* fix casing

* Added meta data inspector to testdata data source
This commit is contained in:
Torkel Ödegaard
2023-09-18 09:00:59 +02:00
committed by GitHub
parent 5484e0a2d5
commit 401ec3c4b0
8 changed files with 110 additions and 19 deletions

View File

@@ -757,13 +757,21 @@ func RandomWalk(query backend.DataQuery, model JSONModel, index int) *data.Frame
timeWalkerMs += query.Interval.Milliseconds()
}
return data.NewFrame("",
frame := data.NewFrame("",
data.NewField("time", nil, timeVec).
SetConfig(&data.FieldConfig{
Interval: float64(query.Interval.Milliseconds()),
}),
data.NewField(frameNameForQuery(query, model, index), parseLabels(model, index), floatVec),
)
frame.SetMeta(&data.FrameMeta{
Custom: map[string]interface{}{
"customStat": 10,
},
})
return frame
}
func randomWalkTable(query backend.DataQuery, model JSONModel) *data.Frame {