paradime.admin.usage reads Bolt and DinoAI usage in a period: the numbers that the Usage page shows. For the GraphQL operations, see Usage.
Prerequisites
- These operations are part of the Enterprise plan. On other plans, they raise
AdminPlanUpgradeRequiredException. - Your API key needs the Usage viewer capability group.
- The admin client of the
paradime-iopackage. See Admin client.
workspace_uid:
period_from (included) and ends at period_to (excluded). It can be at most 366 days long. A datetime without a timezone is UTC. A UTC calendar month gives the numbers that the Usage page shows for that month. Deleted workspaces are left out, and a recent period can still grow while runs end.
Get usage
Reads Bolt and DinoAI usage in a period, summed over the workspaces you ask for.One workspace to sum. Leave it out for every workspace that the API key can reach.
List usage per workspace
Iterates over a period’s usage one workspace at a time, ordered by workspace uid.Types
Import the models fromparadime.apis.admin.usage.types.