RatePolicy
This content is not available in your language yet.
Properties
Bölüm başlığı “Properties”adjustmentTiming?
Bölüm başlığı “adjustmentTiming?”
optionaladjustmentTiming?:"on_crossing"|"none"
Volume only: on_crossing emits a (usually negative) adjustment for earlier units when a tier is crossed.
perObservation?
Bölüm başlığı “perObservation?”
optionalperObservation?:object
Clamp for a single observation’s charge (adjustments are not clamped).
maxMicroUsd?
Bölüm başlığı “maxMicroUsd?”
optionalmaxMicroUsd?:number
minMicroUsd?
Bölüm başlığı “minMicroUsd?”
optionalminMicroUsd?:number
rounding?
Bölüm başlığı “rounding?”
optionalrounding?:"per_event_up"|"cumulative"
per_event_up rounds each observation up; cumulative rounds the running total so the period sum never drifts.
tierPeriod?
Bölüm başlığı “tierPeriod?”
optionaltierPeriod?:string
Which period key usedSoFar belongs to. A hint for getRate; the library does not read it.