Meridian handbook
ReferenceConfiguration

analytics/reports.yaml and dashboards.yaml

Every key of config/analytics/reports.yaml (scheduled member and organisation reports) and config/analytics/dashboards.yaml (organisation dashboards and manually entered figures).

config/analytics/reports.yaml declares scheduled member and organisation reports. config/analytics/dashboards.yaml declares the organisation dashboards and the figures staff enter per period.

engine-dmo analytics report-run queues a report for its current period, and engine-dmo analytics export exports a dashboard. Reports to members need engine-dmo. See Analytics.

analytics/reports.yaml

KeyTypeDefaultMeaning
reportslist of objects[]Scheduled reports
reports[].audiencemember, organisationRequiredmember (a report a member organisation receives) or organisation (a report about the destination’s own organisation)
reports[].comparenone, previous_period, previous_yearnonenone, previous_period or previous_year
reports[].dashboardstringThe dashboard it is built from
reports[].formatanyThe output format or formats
reports[].idstringWritten for youThe element’s stable id. Written by engine-dmo check --fix; never write or change it by hand
reports[].keystringRequiredThe report’s key
reports[].metricslist of objectsThe figures it carries, each with key, kind, label and an optional target
reports[].metrics[].keystringSee reports[].metrics
reports[].metrics[].kindstringSee reports[].metrics
reports[].metrics[].labelmap of stringSee reports[].metrics
reports[].metrics[].targetnumberSee reports[].metrics
reports[].namemap of stringIts name per locale
reports[].rangeprevious_financial_year, previous_month, previous_quarter, previous_year, this_financial_year, this_month, this_quarterThe period it covers: this_month, previous_month, this_quarter, previous_quarter, previous_year, this_financial_year, previous_financial_year
reports[].schedulestringWhen it runs, as a cron schedule
reports[].siteslist of stringEvery siteThe sites it covers
reports[].tiersanyEvery tierThe membership tiers it goes to: a list of keys or { min: <tier> }
reports[].tostringWhere an organisation report is sent

analytics/dashboards.yaml

KeyTypeDefaultMeaning
dashboardslist of objects[]Organisation dashboards on the Insight screen
dashboards[].comparestringThe comparison it opens with
dashboards[].default_rangestringThe range it opens on
dashboards[].keystringRequiredThe dashboard’s key
dashboards[].namemap of stringIts name per locale
dashboards[].widgetslist of objectsThe tiles: each a type with its metric, dimension, breakdown, interval, limit, order, size, steps, label and highlight
metricslist of objects[]Figures staff enter by hand per period, beside the measured ones
metrics[].descriptionmap of stringWhat it measures, per locale
metrics[].idstringWritten for youThe element’s stable id. Written by engine-dmo check --fix; never write or change it by hand
metrics[].keystringRequiredThe figure’s key
metrics[].kindstringIts kind
metrics[].labelmap of stringIts name per locale
metrics[].periodstringHow often it is entered
metrics[].unitstringIts unit