Skip to main content

Interface: UsageLimitEvent

Event payload emitted when usage breaches at least one limit.

Extends​

Properties​

breaches​

breaches: TokenLimitBreach[];

Collection of breached limit descriptors.


entry​

entry: TokenUsageEntry;

Usage entry that was persisted.

Inherited from​

UsageRecordedEvent.entry


model​

model: string;

Model associated with the recorded usage.

Inherited from​

UsageRecordedEvent.model


totals​

totals: UsageTotalsSnapshot;

Updated totals including lifetime and window snapshots.

Inherited from​

UsageRecordedEvent.totals