WasmComputeStats
Aggregate compute activity for an app over a recent window: throughput, failure rate, fuel, egress, and a per-module breakdown.
type WasmComputeStats {
windowMinutes: Int!
aggregatedThrough: DateTime!
totalRuns: Int!
failedRuns: Int!
failureRatePct: Float!
totalFuelUsed: BigInt!
totalEgressMsgs: BigInt!
avgDurationUs: Int!
byModule: [WasmComputeStat!]!
}
Fields
WasmComputeStats.windowMinutes ● Int! non-null scalar
The window size in minutes.
WasmComputeStats.aggregatedThrough ● DateTime! non-null scalar
The instant through which these totals are complete. Activity is counted from per-minute usage rollups that each instance buffers in memory and writes every few seconds, so entry calls made after this instant are NOT included yet. Read it before concluding anything from a zero: totalRuns: 0 with an aggregatedThrough a few seconds in the past means "nothing aggregated yet", not "nothing ran". Poll until aggregatedThrough is later than the run you are looking for.
WasmComputeStats.totalRuns ● Int! non-null scalar
Total entry calls (ticks + invocations) in the window, complete through aggregatedThrough.
WasmComputeStats.failedRuns ● Int! non-null scalar
Failed runs in the window.
WasmComputeStats.failureRatePct ● Float! non-null scalar
Failure rate as a percentage (0-100).
WasmComputeStats.totalFuelUsed ● BigInt! non-null scalar
Total fuel consumed in the window.
WasmComputeStats.totalEgressMsgs ● BigInt! non-null scalar
Total replication messages emitted in the window.
WasmComputeStats.avgDurationUs ● Int! non-null scalar
Average run duration in microseconds.
WasmComputeStats.byModule ● [WasmComputeStat!]! non-null object
Per-module breakdown.
Returned By
computeModuleStats query