{}OPF
DocsObject referenceView source

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

Field index

FieldTypeReq.Description
valuestring | numberyesPrimary metric value.
labelstringMetric label.
descriptionstringOptional supporting context for the metric.
unitstringMetric unit, suffix, or currency marker.
deltastring | numberMetric change value.
trendenumMetric trend direction.

value

typestring | numberrequiredyesdefault

Primary metric value.

value.json
{
  "value": 42
}

label

typestringrequirednodefault

Metric label.

label.json
{
  "label": "Revenue"
}

description

typestringrequirednodefault

Optional supporting context for the metric.

description.json
{
  "description": "Recognized revenue for the quarter."
}

unit

typestringrequirednodefault

Metric unit, suffix, or currency marker.

unit.json
{
  "unit": "%"
}

delta

typestring | numberrequirednodefault

Metric change value.

delta.json
{
  "delta": "+12%"
}

trend

typeenumrequirednodefault

Metric trend direction.

trend.json
{
  "trend": "up"
}