Skip to content

Get usage metrics

GET
/billing/usage

Returns accumulated storage (GB-hours), compute time (milliseconds), and data out (GB) for the current billing period. Use to monitor consumption and anticipate billing. Values reflect usage since billing cycle start.

Current usage metrics

Response containing current usage metrics for the tenant.

object
compute_ms
required

Accumulated compute time in milliseconds since last billing cycle.

number format: double
data_out_gb
required

Accumulated data out in GB since last billing cycle.

number format: double
storage_gb_hours
required

Accumulated storage in GB-hours since last billing cycle.

number format: double
Example
{
"compute_ms": 45230,
"data_out_gb": 2.34,
"storage_gb_hours": 124.56
}

Unauthorized

Billing not configured

Error response for billing operations.

object
error
required

Error message.

string
Example
{
"error": "Billing service not available"
}

Server error

Error response for billing operations.

object
error
required

Error message.

string
Example
{
"error": "Billing service not available"
}

Billing service unavailable

Error response for billing operations.

object
error
required

Error message.

string
Example
{
"error": "Billing service not available"
}