This is a preview of unreleased docs from main. View the published docs
Skip to main content

Interface: MetersNamespace

Defined in: interaction/meters.ts:22

Read access to the meter usage returned by the most recent interaction evaluation.

Access this namespace via allegro.meters.

Methods​

all()​

all(): MeterUsageMap

Defined in: interaction/meters.ts:24

Every meter's usage from the latest evaluation, keyed by meter slug.

Returns​

MeterUsageMap


get()​

get(slug): MeterUsage | null

Defined in: interaction/meters.ts:27

One meter's usage, or null when the visitor has none for it.

Parameters​

ParameterType
slugstring

Returns​

MeterUsage | null