TinyBase logoTinyBase

Aggregators type aliases

This is the collection of aggregators type aliases within the metrics module. There are 4 aggregators type aliases in total.

MetricAggregate

The MetricAggregate type describes a custom function that takes an array of numbers and returns an aggregate that is used as a Metric.

Read more

MetricAggregateAdd

The MetricAggregateAdd type describes a function that can be used to optimize a custom MetricAggregate by providing a shortcut for when a single value is added to the input values.

Read more

MetricAggregateRemove

The MetricAggregateRemove type describes a function that can be used to optimize a custom MetricAggregate by providing a shortcut for when a single value is removed from the input values.

Read more

MetricAggregateReplace

The MetricAggregateReplace type describes a function that can be used to optimize a custom MetricAggregate by providing a shortcut for when a single value in the input values is replaced with another.

Read more