← All native models

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.

object
childrenRequired
array
Minimum items
1
Maximum items
9223372036854776000
List items
Choose exactly one shape
All of these apply
componentRequired
string
Value
"metric-panel"
idRequired

Unique identifier: lowercase letters, digits and hyphens, starting with a letter.

string
Minimum length
1
metricStateRequired

State key holding the ID of the metric to load.

string
Minimum length
1
samplesOptional

Number of recent samples to load.

integer
Minimum
2
Maximum
1000
styleOptional

Chart style.

string
Allowed values
["line","area"]
titleRequired

Heading shown to users.

string
Minimum length
1
unitOptional

Unit shown after the value, such as kg. Use unit or t:unit, not both.

string
weightOptional

Share of the space relative to sibling layout elements.

number
exclusiveMinimum
0

Only the fields listed here are accepted.