pub struct Report {Show 15 fields
pub period_label: String,
pub now_ms: i64,
pub since_ms: i64,
pub period_end_ms: Option<i64>,
pub month_inferred: bool,
pub account: Option<Usage>,
pub account_error: Option<String>,
pub tier: String,
pub profile: Option<String>,
pub offset_secs: i64,
pub five_hour: Totals,
pub weekly: Totals,
pub month: Totals,
pub daily: Option<Totals>,
pub models: Vec<ModelUsage>,
}Fields§
§period_label: String§now_ms: i64§since_ms: i64§period_end_ms: Option<i64>§month_inferred: bool§account: Option<Usage>The control plane’s meters, when arkcli answered.
account_error: Option<String>Why the meters are absent, when that is worth saying (--no-api is a
deliberate choice, not a fault).
tier: StringThe tier the figures are measured against (explicit --plan, else the
profile’s own plan_tier, else the catalogue default).
profile: Option<String>arkcli profile the meters came from, for the header.
offset_secs: i64The server offset the account’s windows are cut in (seconds east of UTC). Period bounds print in that offset, never in a guessed local zone.
five_hour: Totals§weekly: Totals§month: Totals§daily: Option<Totals>Present only when the endpoint returned a daily window (media workloads; a text-only plan exposes 5h/weekly/monthly).
models: Vec<ModelUsage>Sorted by month AFP, descending.
Implementations§
Source§impl Report
impl Report
Sourcepub fn afp_per_request(&self) -> Option<f64>
pub fn afp_per_request(&self) -> Option<f64>
AFP per request over the 5-hour window — the meter’s figure divided by this store’s request count. Fresh enough to be meaningful, and the number the capacity questions are built on.
Sourcepub fn reconcile(&self) -> Option<f64>
pub fn reconcile(&self) -> Option<f64>
Meter vs computed AFP over the 5-hour window, as a signed percentage of the meter. A few percent is normal (a request still in flight, another machine on the same key); a large gap means an unmodelled item (media or Harness) or traffic this store cannot see.
Sourcepub fn burn_per_day(&self) -> Option<f64>
pub fn burn_per_day(&self) -> Option<f64>
Burn implied by the 5h window, in AFP/day: what the cycle’s current pace
would consume over a day. None before the block has any use.
Sourcepub fn window_quota(&self, catalog: &Catalog, share: f64) -> Option<f64>
pub fn window_quota(&self, catalog: &Catalog, share: f64) -> Option<f64>
The plan’s own quota for a window: its monthly AFP times the catalogue’s share of it. ARK publishes both, so the local estimate can print the same pair the console does — medium’s 10,000 / 35,000 / 100,000 AFP are exactly what its meters reported on 2026-10-20.