Dashboards

A dashboard is a page of tiles that read from definitions the platform already has: metrics, object queries, saved or read-only SQL, and text. It holds no numbers of its own. One render call computes every tile for the person looking at it, with their access labels, row policies and grants, so two people can open the same dashboard and each see only what they are allowed to

6 tile typesMetric, trend, breakdown, objects, SQL and text
One callEvery tile rendered together, each with the viewer's access
FiltersDashboard filters mapped to each tile's own property
SharedPrivate, or shared with groups, with separate edit groups

In the platform today

Built
  • Dashboards run in the platform service, with the definitions, filters, sharing and the render endpoint on this page, as in the demo airline, Markham Aviation
  • The Dashboards screen, in Explore, lists dashboards and metrics, renders a dashboard with the viewer's access, and lets the owner add tiles to their own copy
  • Dashboards can also be read through the API, the Python client or a notebook
On request
  • Scheduled snapshots and a result cache
Requirements
  • A signed-in person. Anyone can create a private dashboard
  • For each tile to render, read access to what it reads: the metric's object type or SQL source, the object type of an objects tile, or the grants of a SQL tile
  • To change a shared dashboard, ownership or membership of one of its edit groups

Where a dashboard comes from

Dashboards come from two places. Dashboards defined in the ontology, under dashboards: in metrics.yaml or ontology.yaml, are loaded on start and change only when the YAML changes. They can be copied through the API but not edited there. Dashboards created through the API belong to the person who created them, who can hand one on to someone else

Tiles

TypeReadsRequiredReturns
metricOne metric value, optionally with a comparisonmetricThe value, its target, the previous value and the change
trendA metric over periodsmetric, time.grainOne value per period, partial periods flagged
breakdownA metric by one to three of its slicesmetric, byOne value per group, 20 rows by default and 200 at most
objectsAn object query, with the properties to show and an orderquery.fromA page of objects, 20 by default and 100 at most
sqlRead-only SQL over the lake, or a saved querysql or savedQueryColumns and up to 1,000 rows, 100 by default
textNothingtext, up to 20,000 charactersThe text

Every tile has an id, an optional title and a width on a 12-column grid. Metric tiles refer to a metric by id, or pin a version with id@version; a tile that names a metric that does not exist is refused when the dashboard is saved, not when it renders

A dashboard definition

This is part of the maintenance control dashboard in the demo, defined in the ontology

dashboards:
  maintenance-control:
    name: Maintenance control
    description: The morning picture for the maintenance control desk
    owner: mc.lee
    sharing:
      visibility: shared
      groups: [maintenance-control, planning, quality, hangar, line-technicians, operations]
      editGroups: [maintenance-control]
    filters:
      - { id: aircraftType, label: Aircraft type, property: aircraftType,
          values: [DH8-400, E175] }
      - { id: station, label: Station, property: station }
    tiles:
      - id: dispatch
        type: metric
        title: Dispatch reliability, last 7 days
        metric: dispatch-reliability
        time: { last: 7d }
        compare: previous
        filterMap: { station: origin }     # this tile filters station on the flight's origin
        width: 3
      - id: dispatch-trend
        type: trend
        metric: dispatch-reliability
        time: { grain: day, last: 7 }
        width: 6
      - id: deferrals
        type: breakdown
        metric: deferrals-by-expiry
        by: [category, expiryBand]
        width: 6
      - id: fleet-status
        type: objects
        title: Aircraft not in service
        query: { from: aircraft, where: { status: { $ne: In service } } }
        select: [fleetNumber, registration, status, statusReason, currentStation, statusSince]
        orderBy: [{ property: statusSince, direction: desc }]
        filterMap: { station: currentStation }
        width: 6

Filters

A dashboard filter has an id, a label, the property it filters by default, and optionally a fixed list of values and a default value. Each tile can map a filter to a different property with filterMap, because the same idea has different names on different types: a station is the origin of a flight and the currentStation of an aircraft. A tile that cannot take a filter, because its metric does not offer the property as a slice or its object type has no such property, ignores it and says so

Each rendered tile lists filtersApplied and filtersIgnored, so a screen can show that a number is not filtered by station rather than leave the reader to assume it is. SQL tiles ignore dashboard filters, since a filter cannot be added to arbitrary SQL safely

Rendering

POST /api/v2/dashboards/maintenance-control:render
{ "filters": { "aircraftType": "DH8-400", "station": "YHZ" } }
{
  "dashboard": { "id": "maintenance-control", "name": "Maintenance control", "owner": "mc.lee",
                 "source": "ontology", "version": 1, "…": "…" },
  "filters": { "aircraftType": "DH8-400", "station": "YHZ" },
  "renderedAt": "2026-10-23T10:12:04Z", "asOf": "2026-10-23T10:12:04Z",
  "tiles": [
    { "id": "dispatch", "type": "metric", "title": "Dispatch reliability, last 7 days",
      "width": 3, "filtersApplied": ["aircraftType", "station"], "filtersIgnored": [],
      "data": { "...": "the metric result" } },
    { "id": "aog", "type": "metric", "title": "AOG hours, last 28 days", "width": 3,
      "filtersApplied": [], "filtersIgnored": [],
      "error": { "code": "PERMISSION_DENIED",
                 "reason": "PERMISSION_DENIED.METRIC_ACCESS_LABEL_REQUIRED",
                 "status": 403, "detail": "..." } }
  ]
}

Tiles are computed one after another in the same request, with the viewer's access, and share a cache of metric results for that request only. One failing tile does not fail the rest: a tile over data the viewer cannot read returns an error in place of data, and the other tiles render as usual. An unknown filter id, or a value outside a filter's fixed list, refuses the whole request with INVALID_ARGUMENT

Sharing and editing

WhoCan viewCan changeCan delete or hand on
OwnerYesYesYes
Member of an edit groupWhen it is shared with themYesNo
Member of a share groupYesNo; can copy itNo
AdministratorYesYesYes
Anyone elseNo; the dashboard answers as not foundNoNo

Dashboards defined in the ontology cannot be changed or deleted through the API by anyone; change the YAML, or copy the dashboard and change the copy. A change can carry the version it was based on, and a change made against an older version is refused with CONCURRENCY_CONFLICT

API and client

EndpointDoes
GET /api/v2/dashboardsDashboards the caller can view
POST /api/v2/dashboardsCreates a dashboard owned by the caller
GET /api/v2/dashboards/{id}One definition
PUT /api/v2/dashboards/{id}Changes it, with the version it was based on
DELETE /api/v2/dashboards/{id}Deletes it, owner only
POST /api/v2/dashboards/{id}:renderEvery tile's data, with optional filter values
POST /api/v2/dashboards/{id}:copyA private copy owned by the caller
import os
from mso_client import Client

mso = Client("https://ontology.example.com", token=os.environ["MSO_TOKEN"])
page = mso.dashboards("maintenance-control").render(filters={"station": "YHZ"})
for tile in page["tiles"]:
    print(tile["id"], "error" if "error" in tile else "ok", tile["filtersIgnored"])

Apps and saved analyses

Apps made in the App builder are stored on the service too. An app is pages of widgets on a 12-column grid, each bound to an object set, a metric or an aggregate, an action form, a map or a chart, with variables that carry a selection or a filter from one widget to others. Saving checks every binding against the ontology as the person saving sees it. Each save is a version; publishing marks the version people open, and earlier versions can be published again. The owner, editors and administrators open drafts; viewers open only the published version. Saved analyses from the Analysis screen are stored the same way

GET /api/v2/apps/{id}/render?variables={"selected":"401"}

Rendering resolves every widget in one call under the viewer's own access labels, row policies and hidden properties. A widget the viewer cannot read returns an error for that widget only. Time series widgets are drawn in the browser from the series the screen loads

Limitations

  • Dashboards defined in the ontology are read-only on the screen; the owner and edit groups change copies of them
  • A dashboard holds at most 40 tiles
  • Nothing is cached between requests, so every render recomputes every tile, and there are no scheduled snapshots of a dashboard
  • SQL tiles ignore dashboard filters
  • Dashboards defined in the ontology are read-only through the API
  • A breakdown takes at most 3 slices, the same as any metric read

Related