Data model
The shared vocabulary for measurement data
The package normalizes measurement data into a few shared concepts. Understanding these terms makes the tutorials and API reference easier to follow.
Measurement records
MeasurementRecord is the central data shape. Fetching returns a flat array of
records rather than feature-specific chart data.
A record describes a reading interval and includes enough context to decide how it should be displayed, grouped, or filtered. That context includes utility, reading direction, market supply point, consumption values, and cost values when available.
Utilities
A Utility identifies the energy domain for a record, such as electricity or
gas. Utility is commonly used to split one fetched dataset into separate cards
or views.
Reading direction
ReadingDirection distinguishes different meter roles, such as imported
consumption and exported energy. Most consumption views focus on import data,
but export-aware experiences may need to filter or group by direction.
Market supply points
A market supply point represents the meter point that records belong to. Supply points are resolved separately from measurement fetching so apps can choose whether to show all supplies together or scope a view to one supply point.
Transformed data
Overview and summary APIs consume measurement records and return data shaped for specific experiences. They are pure transforms, so the same fetched records can feed different displays.
Where to go next
- Measurements API: root measurement operations and types
- Market Supply Points API: supply point helpers
- Render usage charts guide: scoping preferences per market supply point