grafana/public/app/plugins/panel/nodeGraph/panelcfg.cue
sam boyer 323cbe1997
kindsys: Adapt to new flattened lineage syntax in Thema (#68034)
* Update all core kinds to flattened lineages

* Regen Go types, without any

* Regen Go types, s/interface{}/any/

* Update generated core typescript

* Update generate docs

* Fix defaults gen in veneer index jenny

* Flatten plugindef lineage

* Convert all plugin kinds to flattened form

* Switch back to interface{} for now

* Switch to fs.Sub in plugin DeclParser

* Mostly undesirable codegen changes, to be fixed

* Update mod and sum

* Update pfs tests to flattened lineages

* Update thema to latest, regen docs
2023-05-24 10:47:25 +02:00

55 lines
1.7 KiB
CUE

// Copyright 2023 Grafana Labs
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package grafanaplugin
composableKinds: PanelCfg: {
maturity: "experimental"
lineage: {
schemas: [{
version: [0, 0]
schema:
// v0.0
{
ArcOption: {
// Field from which to get the value. Values should be less than 1, representing fraction of a circle.
field?: string
// The color of the arc.
color?: string
} @cuetsy(kind="interface")
NodeOptions: {
// Unit for the main stat to override what ever is set in the data frame.
mainStatUnit?: string
// Unit for the secondary stat to override what ever is set in the data frame.
secondaryStatUnit?: string
// Define which fields are shown as part of the node arc (colored circle around the node).
arcs?: [...ArcOption]
}
EdgeOptions: {
// Unit for the main stat to override what ever is set in the data frame.
mainStatUnit?: string
// Unit for the secondary stat to override what ever is set in the data frame.
secondaryStatUnit?: string
}
Options: {
nodes?: NodeOptions
edges?: EdgeOptions
} @cuetsy(kind="interface")
}
}]
lenses: []
}
}