Skip to content

UsageLimit

Usage-limit windows (five-hour, weekly), as Agent.status, the LimitsUpdated event and the UsageLimited failure report them.

Since v0.3.0

Normalized limit window. other keeps the provider’s name in label.

Signature

declare const LimitWindow: Schema.Literals<readonly ["five_hour", "weekly", "other"]>

Source

Since v0.1.0

Signature

type LimitWindow = typeof LimitWindow.Type

Source

Since v0.1.0

Usage of one limit window.

Signature

declare const LimitWindowStatus: Schema.Struct<{
readonly window: Schema.Literals<readonly ["five_hour", "weekly", "other"]>
readonly label: Schema.String
readonly usedPercent: Schema.NullOr<Schema.Number>
readonly resetsAt: Schema.NullOr<Schema.DateTimeUtcFromMillis>
readonly model: Schema.OptionFromNullOr<Schema.String>
}>

Source

Since v0.1.0

Signature

type LimitWindowStatus = typeof LimitWindowStatus.Type

Source

Since v0.1.0