ReadingReq class
Constructors
-
ReadingReq({String? account, int? cachedInputTokens, String? confidence, int? costCents, int? costLimitCents, String? currency, int? inputTokens, String? kind, String? lane, String? machine, int? outputTokens, String? plan, String? provider, int? requests, String? resetsAt, bool? synthetic, int? totalTokens, num? usedPct, String? window, int? windowMinutes, String? windowStart})
-
Returns a new ReadingReq instance.
Properties
-
account
↔ String?
-
Account is the provider-side account the sample belongs to.
getter/setter pair
-
cachedInputTokens
↔ int?
-
CachedInputTokens is the window's cached-prompt-token count.
getter/setter pair
-
confidence
↔ String?
-
Confidence says how real the counters are, as the meter graded itself.
getter/setter pair
-
costCents
↔ int?
-
CostCents is the window's spend in cents, as the provider's meter states it.
getter/setter pair
-
costLimitCents
↔ int?
-
CostLimitCents is the window's spend cap in cents, when the meter knows one.
getter/setter pair
-
currency
↔ String?
-
Currency is the ISO currency the cost fields are stated in.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setteroverride
-
inputTokens
↔ int?
-
InputTokens is the window's prompt-token count.
getter/setter pair
-
kind
↔ String?
-
Kind is subscription or apikey; anything else is refused.
getter/setter pair
-
lane
↔ String?
-
Lane names the meter's own lane label for this measurement.
getter/setter pair
-
machine
↔ String?
-
Machine is the machine the collector observed the account on. Required.
getter/setter pair
-
outputTokens
↔ int?
-
OutputTokens is the window's completion-token count.
getter/setter pair
-
plan
↔ String?
-
Plan is the provider plan label the account is on.
getter/setter pair
-
provider
↔ String?
-
Provider is the AI provider whose meter reported this sample. Required.
getter/setter pair
-
requests
↔ int?
-
Requests is the window's request count.
getter/setter pair
-
resetsAt
↔ String?
-
ResetsAt is when the window resets, RFC 3339, bounded.
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
synthetic
↔ bool?
-
Synthetic marks a sample the collector derived rather than observed.
getter/setter pair
-
totalTokens
↔ int?
-
TotalTokens is the window's total token count.
getter/setter pair
-
usedPct
↔ num?
-
UsedPct is how much of the window's allowance is consumed, clamped 0..100.
getter/setter pair
-
window
↔ String?
-
Window is the window class, one of 6h, day, week, month; anything else is refused rather than silently reclassified.
getter/setter pair
-
windowMinutes
↔ int?
-
WindowMinutes is the window's length as the meter reported it.
getter/setter pair
-
windowStart
↔ String?
-
WindowStart is when the measured window opened, RFC 3339, bounded to a sane interval around now.
getter/setter pair