Usage

usage

Methods

Get Usage Record ->
get/v1/usage/{resource_id}

Get the usage record for a single resource (metadata plus dimension history) for the current organization.

path Parameters
resource_id: string
Response fields
Request example
200Example
List Usage Records -> Cursor<>
get/v1/usage

List per-resource usage records for the current organization. Each item is one resource with its nested dimension history (active and closed segments).

Domain types

Usage = { dimensions, ended_at, project_id, 4 more... }

Usage record for a single metered resource.

UsageDimension = { id, dimension, ended_at, 3 more... }

Top-level dimension entry; bundle heads expand via children.

UsageDimensionLeaf = { id, dimension, ended_at, 2 more... }

One ledger segment for a (resource, dimension) pair.

UsageList = { items, pagination }
UsageResourceType = "vm" | "volume" | "vpc" | 4 more...

Kind of metered resource a ledger row belongs to.