Skip to main content
GET
Get Sailbox spend

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

from
string<date-time>

Start of the window, as an RFC 3339 timestamp, honored to the minute. Defaults to the first of the current UTC month.

to
string<date-time>

End of the window, as an RFC 3339 timestamp, honored to the minute. Defaults to now, and must be after from.

app_id
string

Only count Sailboxes in this app.

sailbox_id
string

Only count this Sailbox.

Response

The spend summary.

start_at
string<date-time>
required

Start of the window the response covers.

end_at
string<date-time>
required

End of the window the response covers.

cost_usd_nanos
integer<int64>
required

Cost of all usage in the window, in billionths of a US dollar.

running_seconds
number
required

Total Sailbox running seconds in the window.

vcpu_seconds
number
required

Total virtual CPU seconds used.

memory_gib_seconds
number
required

Total memory GiB seconds used.

state_disk_gib_seconds
number
required

Total disk GiB seconds used.

creation_count
integer<int64>
required

Creation charges in the window.

pricing_configured
boolean
required

Whether prices are configured; when false every cost is 0.

creation_fees_waived
boolean
required

Whether your organization's current plan waives creation fees. Each creation is charged or waived by the plan in effect when it was made, so a window that spans a plan change can carry creation charges from before the waiver.

rates
object
required

Prices used to work out the costs in this response, in billionths of a US dollar. New rates can appear over time.

sailboxes
object[]
required

Per-Sailbox breakdown.