Skip to content

Commit

Spend's third figure is named for what it is: Charged, this month, against the spend limit when there is one, and No spend limit set when there isn't.

syntaqxcommitted Parent334fc39Browse files
2 files+4−40/2 viewed
+1−1
3131
3232 | View | Figures |
3333 | --- | --- |
34−| **Workspace** | **Spent**: usage at price over the period, every product, the same figure as [Usage](/guides/usage-and-billing/#the-usage-page). **Agents**: every agent's replies and sessions. **Spend limit**: what was charged this month against the workspace's spend limit. |
34+| **Workspace** | **Spent**: usage at price over the period, every product, the same figure as [Usage](/guides/usage-and-billing/#the-usage-page). **Agents**: every agent's replies and sessions. **Charged**: what the workspace was charged this month, against its spend limit when it has one. |
3535 | **You** | **Agents for you** over the period. **Your budget** this month, and what is spent against it. **Your chats with agents**: the replies agents wrote you. |
3636
3737 **By day** shows the period one day at a time. Hover or focus a day for
+3−3
186186 <Tile label={`Spent, ${label}`} value={used ? money(used.free ? used.totals.costMicros : used.totals.priceMicros) : "—"} sub={used ? (used.free ? "At cost: g1t charges nothing for now" : "Usage at price, every product") : "Usage couldn't be read"} />
187187 <Tile label={`Agents, ${label}`} value={spent ? money(spent.total_micros) : "—"} sub={spent ? `${countOf(spent.by_kind)} replies and sessions` : "The agents service didn't answer"} />
188188 <Tile
189− label="Spend limit, this month"
189+ label="Charged, this month"
190190 value={levels.limit?.spentMicros != null ? money(levels.limit.spentMicros) : "—"}
191191 sub={levels.limit ? limitLine(levels.limit.spentMicros ?? 0, levels.limit.spendLimitMicros ?? levels.limit.ceilingMicros) : "Billing couldn't be read"}
192192 >
285285 }
286286
287287 function limitLine(spent: number, limit: number | null): string {
288− if (limit == null) return "No spend limit";
289− return `Charged, of ${money(limit)} · ${Math.round((spent / Math.max(1, limit)) * 100)}%`;
288+ if (limit == null) return "No spend limit set";
289+ return `Of a ${money(limit)} spend limit · ${Math.round((spent / Math.max(1, limit)) * 100)}%`;
290290 }
291291
292292 /** Your own figures: what agents spent for you, and your budget. */