Skip to main content

UsageResource

Bases: object Query organisation usage metrics.

list()

List usage metrics for your organisation over a time window.
  • Parameters:
    • since – Start of the window (ISO 8601, inclusive).
    • until – End of the window (ISO 8601, exclusive).
    • rollup – Bucket size for each row (hour or day).
    • model – Optional filter to a single model name.
    • user_email – Optional filter to one or more acting-user emails.
  • Raises:

list_users()

List distinct acting-user emails observed in a time window.
  • Parameters:
    • since – Start of the window (ISO 8601, inclusive).
    • until – End of the window (ISO 8601, exclusive).
  • Raises:

AsyncUsageResource

Bases: object

list()

List usage metrics for your organisation over a time window.
  • Parameters:
    • since – Start of the window (ISO 8601, inclusive).
    • until – End of the window (ISO 8601, exclusive).
    • rollup – Bucket size for each row (hour or day).
    • model – Optional filter to a single model name.
    • user_email – Optional filter to one or more acting-user emails.
  • Raises:

list_users()

List distinct acting-user emails observed in a time window.
  • Parameters:
    • since – Start of the window (ISO 8601, inclusive).
    • until – End of the window (ISO 8601, exclusive).
  • Raises: