Rulvar API reference / @rulvar/core / SlidingWindowState
Interface: SlidingWindowState
Defined in: packages/core/src/admission/algorithms.ts:81
A sliding window as a ring of sub-window counters (section 4.2, 1).
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
headSlot | number | The epoch-slot index the LAST slot corresponds to. | packages/core/src/admission/algorithms.ts:85 |
slots | number[] | Consumption per slot, oldest first after normalization. | packages/core/src/admission/algorithms.ts:83 |