Metric catalog
Every metric the model defines, as a tile: its value, its trend, its change against the period before and its target. Inspect on a tile says the metric's definition, its dataset, the file and the line, and the requirement it is held to. It does the job of the anfra Metric Catalog and Metric List.
archec new my-app --kind data-app --template metric-catalog
archec ui preview my-app/main.arche --serve
What it shows#
- A filter: the last 30 days.
- Eight tiles, four from the bench runs and four from the units in the field. Each has a sparkline and its change, and the target when it has one.
- The bench metrics by case.
The data#
data/evidence.jsonl: bench runs asarchec testrecords them.data/telemetry.csv: a row per unit and day:at,device,air_temp,uptime,faults.
Limits#
- A metric is in the catalog when a tile shows it: add a tile for each new
metric.
archec checkwarns about a metric no screen shows.
The model is lib/data-apps/metric-catalog/main.arche, and the gallery lists
the other templates.