Get a tenant's usage
Returns what one tenant used hour by hour, with the hour in progress and the totals. Usage is in raw counts by meter. The totals are also split by package and by luna type.
/_luna/tenants/{tenant}/usageAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
usage:readtenantstringrequiredThe tenant, by its name.
sinceinteger<int64>Usage from this moment on, in milliseconds since the Unix epoch. 31 days before until when left out.
untilinteger<int64>Usage up to this moment, in milliseconds since the Unix epoch. Now when left out.
The tenant's usage.
tenantstringrequiredhoursUsageHour[]requiredEach hour that has ended, oldest first.
Show propertiesHide properties
UsageHourhourinteger<int64>requiredThe hour's number, counted from the Unix epoch.
startMsinteger<int64>requiredWhen the hour starts, in milliseconds since the Unix epoch.
usageobjectrequiredWhat was used in the hour, as raw counts by meter.
currentHourobjectrequiredThe hour in progress, as raw counts by meter.
totalsobjectrequiredEvery hour added up, as raw counts by meter.
packagesobjectrequiredThe totals for each package the tenant uses, by package and then by meter.
typesobjectrequiredThe totals for each luna type, by type and then by meter.
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.