SampleReq class
Constructors
-
SampleReq({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 SampleReq instance.
Properties
-
account
↔ String?
-
Account is the linked account the window was metered from.
getter/setter pair
-
cachedInputTokens
↔ int?
-
CachedInputTokens is the prompt tokens the provider served from cache.
getter/setter pair
-
confidence
↔ String?
-
Confidence says how much the counters below mean.
getter/setter pair
-
costCents
↔ int?
-
CostCents is what the window cost on the PROVIDER's own plan, in US cents.
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 setteroverride
-
inputTokens
↔ int?
-
InputTokens is prompt tokens consumed in the window.
getter/setter pair
-
kind
↔ String?
-
Kind is subscription or apikey. Empty is accepted; anything else is refused.
getter/setter pair
-
lane
↔ String?
-
Lane is the meter lane within the account.
getter/setter pair
-
machine
↔ String?
-
Machine is the host whose meter read the window. Required.
getter/setter pair
-
outputTokens
↔ int?
-
OutputTokens is completion tokens produced in the window.
getter/setter pair
-
plan
↔ String?
-
Plan is the subscription plan the account is on, as the provider names it.
getter/setter pair
-
provider
↔ String?
-
Provider is the upstream the account belongs to, e.g. anthropic. Required.
getter/setter pair
-
requests
↔ int?
-
Requests is how many requests the window covers.
getter/setter pair
-
resetsAt
↔ String?
-
ResetsAt is when the measured window rolls over, RFC3339. Empty is allowed; anything else that is not RFC3339 is refused.
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
synthetic
↔ bool?
-
Synthetic marks a window the meter inferred rather than read.
getter/setter pair
-
totalTokens
↔ int?
-
TotalTokens is the window's total tokens.
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. Required, and a class this surface does not know is refused rather than rewritten.
getter/setter pair
-
windowMinutes
↔ int?
-
WindowMinutes is the window's real length in minutes, as the meter reports it.
getter/setter pair
-
windowStart
↔ String?
-
WindowStart is when the measured window opened, RFC3339. Empty is allowed; anything else that is not RFC3339 is refused.
getter/setter pair