aggregateMetrics

Function

Given an array of metrics, aggregate them using the specified aggregation Consumer must be aware of the type of the metrics and pass an appropriate aggregation

Parameters

Parameter Type Default Notes
metrics Required IMetricFeature[]
field Required string
aggregation Required DynamicAggregation

Returns

any

Function defined in common/src/metrics/aggregateMetrics.ts:11