const usage = await host.usage();
// { usedBytes, quotaBytes, requests30d, … }usage = host.usage()
# {"usedBytes", "quotaBytes", "requests30d", …}quotaBytes is the account's object storage
What a host keeps online shares the account's storage with files and mailboxes. The same number appears on every host of the account, and filling it elsewhere refuses a deploy here.
requests30d depends on the kind
A site runs no code per request — there is nothing to count, which is also what makes it the cheapest kind to keep online. For an app or a function, the number is what their execution is measured by.
For the whole account
api.hosts.usage() gives the plan's count and the total; cloud.usage() shows the storage from the other side, with object.hostingBytes saying how much of it is hosting.
When the storage is full
A deploy is refused with quota_exceeded. What is already online keeps serving — reading is never refused, only writing.