Apps
An app is one of your organization's services or products whose spend you want to see and limit on its own: a summarizer, a support bot, a nightly job. Apps share the organization's meters and prices. What an app has of its own is its keys, its budgets, and its spend.
An app is only its id, such as summarizer. Ids use letters, digits, and ., _, :, -.
Admins define apps on the Apps page, in Settings.
Whose spend is whose
An API key belongs to one app, or to none. Every reservation a key makes is its app's. A service never names an app in a request, so it can't spend as another app. A key's app is fixed when the key is created.
A reservation made with a key that has no app belongs to no app: only the organization's budgets count it.
A key also spends in one environment, such as production or staging. An app
that runs in several places gets a key for each: its production key and its staging key both
spend as the app, each in its own environment, so the app's budgets can count all of its spend or
one environment's.
Budgets for an app
A budget is for one app, or for the whole organization:
- An app's budget counts only the reservations that app's keys make.
- An organization's budget counts every reservation, whichever key made it.
A reservation must fit every budget that counts it, so an app's budget is a limit within the organization's. Give the organization a total on a meter, then each app its part of it. The Budgets page draws each app's budgets under the organization's budget they sit within.
One app's spend
Choose an app on the Apps page to see what it spent, on the Spend page, by meter over the last 30 days, or any range you choose.
Apps and labels
A label is what a service says about one call, such as which user it was for. An app is which service is calling, which Tidegate knows from the key. Use apps to keep one service from spending another's budget, and labels to divide a service's own spend.
Removing an app
An admin can remove an app, with its budgets, while it has no keys and no spend: revoke its keys first. Once a reservation is the app's, the app can't be removed, so no spend ever loses its app. A removed app's id can be defined again.