Skip to main content

AppComputeUsage

What an app consumed, per engine, in ONE unit — the number a developer uses to compare the model engine against compute modules, and the number an operator's per-minute allowance is checked against. Derived from the existing per-minute ledgers (wasm_compute_usage, player_wasm_compute_usage, gm_automation_runs, gm_event_log); there is deliberately no separate rollup table for it.

type AppComputeUsage {
windowMinutes: Int!
totalUnits: BigInt!
byEngine: [EngineComputeUnits!]!
peakMinuteUnits: BigInt!
meanUnitsPerMinute: Float!
}

Fields

AppComputeUsage.windowMinutes ● Int! non-null scalar

Length of the window in minutes, as clamped (1 to 1440).

AppComputeUsage.totalUnits ● BigInt! non-null scalar

Compute units across every engine in the window.

AppComputeUsage.byEngine ● [EngineComputeUnits!]! non-null object

Units per engine, always including engines that contributed nothing, so a zero is distinguishable from an engine the query forgot.

AppComputeUsage.peakMinuteUnits ● BigInt! non-null scalar

The highest single minute in the window, summed across engines. This is the number a per-minute allowance refuses on: a mean over an hour hides the minute that would have been refused.

AppComputeUsage.meanUnitsPerMinute ● Float! non-null scalar

Units divided by the window length. Useful for cost, misleading for safety — compare peakMinuteUnits against an allowance, not this.

Returned By

appComputeUsage query