Usage
What an organization used and spent, in the units it pays for (ADR 0020): commands, storage, snapshots, computer vCPU and memory time, exec calls and egress.
Get
https://api.akter.dev/v1/organizations/{organization}/usageRead a month's usage and spend per meter, for the organization, one app or one API key. Usage reaches it within about two minutes.
Path parameters
organizationstringrequiredAn organization's name, unique across Akter Cloud. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
Query parameters
appstringOnly this app's usage.
keystringOnly the usage this API key started.
periodstringThe month to read. Defaults to this month.
Response 200Usage
apiKeystringAn opaque id that starts with key_.
appstringAn app's name, unique within its organization. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
capUsdnumberrequiredThe organization's spend cap for the month, or the key's when
keywas asked.metersMeterUsage[]requiredmeters[].meter"commands" | "queries" | "storage" | "snapshots" | "computerVcpu" | "computerMemory" | "execCalls" | "egress" | "planMinimum"requiredmeters[].quantitynumberrequiredHow much was used, in
unit.meters[].spentUsdnumberrequiredUS dollars.
meters[].unitstringrequiredThe unit prices are quoted in: million commands, million queries, GiB-month, vCPU-hour, GiB-hour, thousand calls, GB or USD.
periodstringrequiredA calendar month in UTC, YYYY-MM. Usage, caps and invoices are counted per month.
spentUsdnumberrequiredUS dollars.
Errors
401UnauthorizedError403ForbiddenError404NotFoundError | FeatureNotEnabledError503ActorUnavailableError | AuthUnavailableError | BillingUnavailableError | BuildStorageUnavailableError | ExecUnavailableError
Forecast
https://api.akter.dev/v1/organizations/{organization}/usage/forecastProject this month's spend to the month's end at its average rate so far.
Path parameters
organizationstringrequiredAn organization's name, unique across Akter Cloud. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
Response 200UsageForecast
capUsdnumberrequiredUS dollars.
periodstringrequiredA calendar month in UTC, YYYY-MM. Usage, caps and invoices are counted per month.
projectedUsdnumberrequiredThis month's spend so far carried to the month's end at its average rate.
spentUsdnumberrequiredUS dollars.
Errors
401UnauthorizedError403ForbiddenError404NotFoundError | FeatureNotEnabledError503ActorUnavailableError | AuthUnavailableError | BillingUnavailableError | BuildStorageUnavailableError | ExecUnavailableError