Skip to main content
Products built on the Platform APIs often create many Bijection installations programmatically. For example, an AI app builder may spin up a fresh installation for every user-generated app. In these scenarios, it’s important to attribute resource usage back to the installation that produced it, so you can monitor cost per app, charge your end users, or detect runaway workloads in real time. Bijection records each installation’s usage itself and serves it per project, installation and UTC day through the APIs below. Attribute it to your own inventory by the installation name each figure carries. Log export sends function log lines, not usage counters. To meter something your application does, such as calls per end user, log it from the function and count the exported lines in your own pipeline.

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.
The CLI resolves the installation reference and uses a credential with a read grant on the installation’s metering scope. For HTTP, send 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.

Recorded installation activity

The hosted Overview page shows hourly calls, failures, and execution time from accepted usage reports. For individual executions, export their log lines and aggregate what your application logs.