Skip to content

Interface: HeavyHittersResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Streaming / HeavyHittersResponse

Interface: HeavyHittersResponse

Defined in: src/types/streaming.ts:87

Response of POST /api/v1/streaming/heavy-hitters.

Properties

capacity

capacity: number

Defined in: src/types/streaming.ts:89

Counter capacity supplied.


heavyHitters

heavyHitters: HeavyHitterItem[]

Defined in: src/types/streaming.ts:91

Candidate heavy hitters sorted by count descending.


maxUndercount

maxUndercount: number

Defined in: src/types/streaming.ts:96

Worst-case under-count per item: total / (capacity + 1). For each item in heavyHitters, trueCount ≤ count + maxUndercount.


total

total: number

Defined in: src/types/streaming.ts:98

Total items processed (including repeats).