pub struct SampleReq {Show 21 fields
pub account: Option<String>,
pub cached_input_tokens: Option<i32>,
pub confidence: Option<String>,
pub cost_cents: Option<i32>,
pub cost_limit_cents: Option<i32>,
pub currency: Option<String>,
pub input_tokens: Option<i32>,
pub kind: Option<String>,
pub lane: Option<String>,
pub machine: Option<String>,
pub output_tokens: Option<i32>,
pub plan: Option<String>,
pub provider: Option<String>,
pub requests: Option<i32>,
pub resets_at: Option<String>,
pub synthetic: Option<bool>,
pub total_tokens: Option<i32>,
pub used_pct: Option<f64>,
pub window: Option<String>,
pub window_minutes: Option<i32>,
pub window_start: Option<String>,
}Fields§
§account: Option<String>Account is the linked account the window was metered from.
cached_input_tokens: Option<i32>CachedInputTokens is the prompt tokens the provider served from cache.
confidence: Option<String>Confidence says how much the counters below mean.
cost_cents: Option<i32>CostCents is what the window cost on the PROVIDER’s own plan, in US cents.
cost_limit_cents: Option<i32>CostLimitCents is the plan’s spend ceiling for the window, in US cents.
currency: Option<String>Currency is the provider’s currency when it is not US cents.
input_tokens: Option<i32>InputTokens is prompt tokens consumed in the window.
kind: Option<String>Kind is subscription or apikey. Empty is accepted; anything else is refused.
lane: Option<String>Lane is the meter lane within the account.
machine: Option<String>Machine is the host whose meter read the window. Required.
output_tokens: Option<i32>OutputTokens is completion tokens produced in the window.
plan: Option<String>Plan is the subscription plan the account is on, as the provider names it.
provider: Option<String>Provider is the upstream the account belongs to, e.g. anthropic. Required.
requests: Option<i32>Requests is how many requests the window covers.
resets_at: Option<String>ResetsAt is when the measured window rolls over, RFC3339. Empty is allowed; anything else that is not RFC3339 is refused.
synthetic: Option<bool>Synthetic marks a window the meter inferred rather than read.
total_tokens: Option<i32>TotalTokens is the window’s total tokens.
used_pct: Option<f64>UsedPct is how much of the window’s allowance is consumed, 0–100.
window: Option<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.
window_minutes: Option<i32>WindowMinutes is the window’s real length in minutes, as the meter reports it.
window_start: Option<String>WindowStart is when the measured window opened, RFC3339. Empty is allowed; anything else that is not RFC3339 is refused.