Skip to Content

The AccountUsage type of the TypeScript SDK, which accounts.getUsage take or answer.

type AccountUsage = {
  accountId: string
  days: UsageDay[]
  from: string
  requests?: RequestBreakdownRow[]
  to: string
}

Fields

FieldTypeDescription
accountIdstringAccount ID
daysUsageDay[]Daily usage metrics for each day in range
fromstringStart date of queried usage range (YYYY-MM-DD)
requestsRequestBreakdownRow[]Optional. Summary of API calls broken down by resource and surface
tostringEnd date of queried usage range (YYYY-MM-DD)

Used by

MethodWhat it does
accounts.getUsageGet daily account usage metrics

On this page