Skip to content

DimensionInstance

Resolves, for each contributing Event, the value a Metric’s contribution is grouped under.

The projector calls handle once per Dimension for every contributing Event and stores the resulting identifier in the Dimension’s column. An undefined result stores the contribution without a value for this Dimension. A string result must be a UUID.

Metrics and projections

readonly column: string

Name of the projection column that stores this Dimension’s values.


readonly prn: string

PRN identifying this Dimension within the Metric.

handle(event, ctx): Promise<string | ReadItem | undefined>

Determines this Dimension’s value for a contributing Event.

AlpyneEvent

The stored Event contributing to the Metric.

ReadRuntimeInstance

Read Runtime context for looking up current Items.

Promise<string | ReadItem | undefined>

An Item, whose id is stored; a UUID string, stored as given; or undefined when no value applies.