Reading recorded usage
GET https://brain.bijection.com/v1/usage/recorded?from=YYYY-MM-DD&to=YYYY-MM-DD
returns the team’s recorded usage as exact quantities per project and UTC day.
Add projectId or deploymentName to narrow it to one project or one
installation; a long period over many installations is refused, so choose a shorter
period or one project. Authenticate with a
team access token or an application token;
reading usage requires team:usage:view.
The same figures appear on the team’s
usage page.
Coverage is explicit. Each installation reports how far its usage has been
collected, and a quantity Bijection could not measure completely is reported as
not measured rather than zero. Quantities are measurements, not charges.
Reading storage observations
GET https://brain.bijection.com/v1/usage/storage returns the absolute
storage observations Bijection has accepted from installations. Supply
from_at and through_at as an inclusive start and exclusive end in RFC 3339,
at most 31 days apart. Set project_id or deployment to narrow the scope.
Authenticate with a team credential that has team:usage:view.
An observation identifies the installation and sampling time and carries exact
decimal strings for the storage meters it observed. The API reports installation
totals. Missing values are unknown, and a sample describes only its own instant.
Reading retained function usage
If the installation has enabled diagnostic retention, read a UTC day’s recorded function subtotals from its source cell through control.GET /v1/metering/installations/{installation}/function-usage?day=<epoch-day>
with the 32-character lowercase hexadecimal installation ID. The epoch-day
counts UTC days since 1970-01-01.
Facts contain the component path, the function’s tree path, and exact
decimal-string quantities for one page of reports. Repeat with --after set
to the previous page’s next_after and add matching facts across pages to get
the recorded daily subtotals. A partial page contains incomplete evidence.
An empty page alone gives no measurement for the day.