UsageWindowView class
Constructors
UsageWindowView ({String ? account , int ? cachedInputTokens , String ? confidence , int ? costCents , int ? costLimitCents , String ? currency , int ? inputTokens , String ? lane , String ? machine , int ? outputTokens , String ? plan , int ? requests , String ? resetsAt , bool ? synthetic , int ? totalTokens , num ? usedPct , String ? window , int ? windowMinutes , String ? windowStart })
Returns a new UsageWindowView instance.
Properties
account
↔ String ?
Account is the linked provider account the window belongs to.
getter/setter pair
cachedInputTokens
↔ int ?
CachedInputTokens is the prompt tokens served from the provider's cache; omitted when unknown.
getter/setter pair
confidence
↔ String ?
Confidence says how much the counters beside it mean — a meter that reported only a percentage leaves them at zero, and this is how a reader tells that from a true zero.
getter/setter pair
costCents
↔ int ?
CostCents is what the window cost on the PROVIDER's own plan, in US cents. It is not a Hanzo charge.
getter/setter pair
costLimitCents
↔ int ?
CostLimitCents is the plan's spend ceiling for the window, in US cents.
getter/setter pair
currency
↔ String ?
Currency is the provider's currency when it is not US cents.
getter/setter pair
hashCode
→ int
The hash code for this object.
no setter override
inputTokens
↔ int ?
InputTokens is prompt tokens consumed in the window; omitted when unknown.
getter/setter pair
lane
↔ String ?
Lane is the meter lane this instance belongs to, e.g. a provider's own rolling-window meter.
getter/setter pair
machine
↔ String ?
Machine is the host whose meter reported the window.
getter/setter pair
outputTokens
↔ int ?
OutputTokens is completion tokens produced in the window; omitted when unknown.
getter/setter pair
plan
↔ String ?
Plan is the subscription plan the account is on, as the provider names it.
getter/setter pair
requests
↔ int ?
Requests is how many requests were made in the window; omitted when the meter did not report it.
getter/setter pair
resetsAt
↔ String ?
ResetsAt is when this window rolls over, RFC3339 UTC; omitted when unknown.
getter/setter pair
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
synthetic
↔ bool ?
Synthetic marks an instance the meter inferred rather than read.
getter/setter pair
totalTokens
↔ int ?
TotalTokens is the window's total tokens; omitted when unknown.
getter/setter pair
usedPct
↔ num ?
UsedPct is how much of the window's allowance is consumed, 0–100.
getter/setter pair
window
↔ String ?
Window is the window class: 6h, day, week or month.
getter/setter pair
windowMinutes
↔ int ?
WindowMinutes is the window's real length in minutes when the meter reported one; omitted when it did not.
getter/setter pair
windowStart
↔ String ?
WindowStart is when this window opened, RFC3339 UTC; omitted when unknown.
getter/setter pair