Skip to content

MetricCalculationHandler

MetricCalculationHandler = (event) => number | null

Defined in: builder/metric.ts:49

Returns the numerical value of an event. This is an optional handler that can be supplied when adding events to a metric. If not supplied, each event simply maps to “1” (i.e. it is a count). If this handler returns null, the event is ignored and filtered out.

AlpyneEvent

number | null