Chio/Docs
LOGIN · JOIN

chio spend

Watch spend as it happens: the event stream, burn-rate projections, anomaly findings, and budget-threshold webhooks.

Reference chio@5f63e6e

On this page

All command families · Global flags

chio spend

Watch spend as it happens: the event stream, burn-rate projections, anomaly findings, and threshold webhooks.

Command synopsistext
chio spend [OPTIONS] <COMMAND>
  • chio spend stream Tail the cursor-ordered spend event stream; a gap in the cursor is reported, never skipped.
  • chio spend burn-rate Fetch the signed chio.spend.burn-rate-projection.v1 for a capability: the window’s rate and the integer time to exhaustion.
  • chio spend anomalies Read signed anomaly findings.
  • chio spend webhook Budget-threshold webhooks, delivered at least once under operator egress policy.

Example

Project when a grant’s budget runs out at the last four hours’ rate.

Terminalbash
chio spend burn-rate --capability cap-01a8…31f2 --window 4h
Output
capability  cap-01a8…31f2
window      4h, USD 1.84 per hour
remaining   USD 9.20 of 20.00
exhaustion  in 5h 00m

chio spend stream

Tail the cursor-ordered spend event stream; a gap in the cursor is reported, never skipped.

Command synopsistext
chio spend stream [OPTIONS]
  • --capability <ID> Only events for this capability.
  • --cursor <CURSOR> Resume after this cursor.

chio spend burn-rate

Fetch the signed chio.spend.burn-rate-projection.v1 for a capability: the window’s rate and the integer time to exhaustion.

Command synopsistext
chio spend burn-rate [OPTIONS] --capability <ID> --window <DURATION>
  • --capability <ID> Capability to project. Required.
  • --window <DURATION> Averaging window, such as 4h. Required.
  • --output <FILE> Write the signed projection here.

chio spend anomalies

Read signed anomaly findings.

Command synopsistext
chio spend anomalies [OPTIONS] <COMMAND>

chio spend anomalies export

Export signed chio.spend.anomaly-finding.v1 records since a time.

Command synopsistext
chio spend anomalies export [OPTIONS] --since <TIME> --output <FILE>
  • --since <TIME> Earliest finding time (RFC 3339 or Unix seconds). Required.
  • --output <FILE> Output file. Required.

chio spend webhook

Budget-threshold webhooks, delivered at least once under operator egress policy.

Command synopsistext
chio spend webhook [OPTIONS] <COMMAND>

chio spend webhook add

Register a webhook for the 50, 80, 95, and 100 percent budget crossings.

Command synopsistext
chio spend webhook add [OPTIONS] --url <URL> --secret-ref <REF>
  • --url <URL> Delivery URL. Required.
  • --secret-ref <REF> Reference to the signing secret. Required.
  • --capability <ID> Only crossings for this capability.

chio spend webhook list

List registered webhooks and their last delivery.

Command synopsistext
chio spend webhook list [OPTIONS]

Read more in Comptroller Console.