Ergonomic helper: top(3) returns the literal 'top3' typed as `top${3}`. Use wherever an AggregateReducer name is accepted:
top(3)
'top3'
`top${3}`
AggregateReducer
series.aggregate(Sequence.every('1m'), { host: top(3) });series.arrayAggregate('tags', top(5)); Copy
series.aggregate(Sequence.every('1m'), { host: top(3) });series.arrayAggregate('tags', top(5));
Equivalent to typing the string literal 'top3' directly.
Ergonomic helper:
top(3)returns the literal'top3'typed as`top${3}`. Use wherever anAggregateReducername is accepted:Equivalent to typing the string literal
'top3'directly.