Native model
workspace_metric_panel
Declare a named workspace_metric_panel value and reference it as workspace_metric_panel.your_name. Models have no separate platform identity or lifecycle.
Topics: Surfaces
Fields
A ready-made dashboard panel: loads a metric's recent samples and shows the statistics you choose above a trend chart.
childrenRequiredarray
- Minimum items
1- Maximum items
9223372036854776000
List items
Choose exactly one shape
All of these apply
componentRequiredstring
- Value
"metric-panel"
idRequiredUnique identifier: lowercase letters, digits and hyphens, starting with a letter.
- Minimum length
1
metricStateRequiredState key holding the ID of the metric to load.
- Minimum length
1
samplesOptionalNumber of recent samples to load.
- Minimum
2- Maximum
1000
styleOptionalChart style.
- Allowed values
["line","area"]
titleRequiredHeading shown to users.
- Minimum length
1
unitOptionalUnit shown after the value, such as kg. Use unit or t:unit, not both.
weightOptionalShare of the space relative to sibling layout elements.
- exclusiveMinimum
0
Only the fields listed here are accepted.