Skip to content

RatePolicy

This content is not available in your language yet.

optional adjustmentTiming?: "on_crossing" | "none"

Volume only: on_crossing emits a (usually negative) adjustment for earlier units when a tier is crossed.


optional perObservation?: object

Clamp for a single observation’s charge (adjustments are not clamped).

optional maxMicroUsd?: number

optional minMicroUsd?: number


optional rounding?: "per_event_up" | "cumulative"

per_event_up rounds each observation up; cumulative rounds the running total so the period sum never drifts.


optional tierPeriod?: string

Which period key usedSoFar belongs to. A hint for getRate; the library does not read it.