Get Usage Summary
GetUsageSummary returns tenant-wide LLM gateway token usage: totals, a per-model breakdown and a time-bucketed series. Unlike the app-scoped RPCs above, this has no app_id — it is scoped to the caller’s tenant alone (c1_tenant_id), with no per-Edge/per-app filter.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.
Query Parameters
Defaults to TB_TIME_BUCKET_HOUR when unset.
TB_TIME_BUCKET_UNSPECIFIED, TB_TIME_BUCKET_HOUR, TB_TIME_BUCKET_DAY The since field.
The until field.
Response
Successful response
The TBControlPlaneServiceGetUsageSummaryResponse message.
The modelBreakdown field.
The series field.
The totalCacheReadTokens field.
The totalCacheWriteTokens field.
The totalInputTokens field.
The totalOutputTokens field.
The totalRequests field.