Metric
Metric content with optional display metadata. Use 'value' for the primary value, 'label' for the metric name, 'description' for supporting context, 'unit' for a suffix/currency marker, 'delta' for change, and…
Metadata
Definition
#/$defs/Metric
Type
object
Source
spec/schemas/opf.schema.json
Fields
value
Type: string | number · Required · Default: —
Primary metric value.
{
"value": 42
}label
Type: string · Optional · Default: —
Metric label.
{
"label": "Revenue"
}description
Type: string · Optional · Default: —
Optional supporting context for the metric.
{
"description": "Recognized revenue for the quarter."
}unit
Type: string · Optional · Default: —
Metric unit, suffix, or currency marker.
{
"unit": "%"
}delta
Type: string | number · Optional · Default: —
Metric change value.
{
"delta": "+12%"
}trend
Type: enum · Optional · Default: —
Metric trend direction.
{
"trend": "up"
}