Skip to content

MetricDefinition

Describes a Metric projected from selected Events, with the Dimensions that bucket its values.

Metrics and projections

readonly dimensions: Record<string, MetricDefinitionDimensionDefinition>

Dimensions attached to the Metric, keyed by Dimension key.


readonly events: Record<string, EventDefinition>

Events that contribute to the Metric, keyed by Event PRN.


readonly grants: GrantDefinition[]

Grants that authorise a principal to report on the Metric.


readonly key: string

Key of the Metric, unique within its App.


readonly prn: string

PRN of the Metric, prn::<app>:metric/<key>.