UsageResource
object
Query organisation usage metrics.
list()
-
Parameters:
- since – Start of the window (ISO 8601, inclusive).
- until – End of the window (ISO 8601, exclusive).
-
rollup – Bucket size for each row (
hourorday). - model – Optional filter to a single model name.
- user_email – Optional filter to one or more acting-user emails.
-
Raises:
- UnprocessableError – The request was rejected by the API.
- AuthenticationError – Invalid or missing API key.
list_users()
-
Parameters:
- since – Start of the window (ISO 8601, inclusive).
- until – End of the window (ISO 8601, exclusive).
-
Raises:
- UnprocessableError – The request was rejected by the API.
- AuthenticationError – Invalid or missing API key.
AsyncUsageResource
object
list()
-
Parameters:
- since – Start of the window (ISO 8601, inclusive).
- until – End of the window (ISO 8601, exclusive).
-
rollup – Bucket size for each row (
hourorday). - model – Optional filter to a single model name.
- user_email – Optional filter to one or more acting-user emails.
-
Raises:
- UnprocessableError – The request was rejected by the API.
- AuthenticationError – Invalid or missing API key.
list_users()
-
Parameters:
- since – Start of the window (ISO 8601, inclusive).
- until – End of the window (ISO 8601, exclusive).
-
Raises:
- UnprocessableError – The request was rejected by the API.
- AuthenticationError – Invalid or missing API key.