CreditUsageInput

FieldTypeRequiredDescription
fromStringNoInclusive timestamp; supply to and omit preset.
toStringNoExclusive timestamp with an explicit offset.
granularityStringNohour, day, week or month; defaults to day.
groupBy[String!]Noproject, model, api_key or member.
compareStringNoprevious_period adds the preceding timeframe and summary.
presetStringNo7d, 30d or 90d. Defaults to 30d.
timezoneStringNoIANA time zone for daily bucket boundaries. Defaults to UTC.
projectReferenceStringNoProject ID or slug that narrows the read to one project of the account

All GraphQL types · Operations