Interface Metrics<T>

interface Metrics<T> {
    aggregate: (<P>(property) => MetricsManager<T, P>);
}

Type Parameters

  • T

Properties

Properties

aggregate: (<P>(property) => MetricsManager<T, P>)

Define the metrics to be returned based on a property when aggregating over a collection.

Use this aggregate method to define the name to the property to be aggregated on. Then use the text, integer, number, boolean, date_, or reference methods to define the metrics to be returned.

See the docs for more details!

Type declaration