Get Usage Report
GetUsageReport summarizes which users or API keys made API requests, by default in the last 60 minutes, or over a past range of up to 90 days when start_time is set. It returns at most max_entries entries, ranked over every matching consumer, together with totals over all of them. It is a bounded summary rather than a search, so it is not paginated: counts change between calls, and pages read at different moments would not join into a consistent list.
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.
Body
The RateLimitServiceGetUsageReportRequest message.
How requests are combined into entries. Defaults to GROUP_BY_API_KEY.
GROUP_BY_UNSPECIFIED, GROUP_BY_API_KEY, GROUP_BY_USER Only count requests made with API keys of these kinds. Requests made from a browser session have no kind and are excluded when this is set. When empty, all requests are counted.
API_KEY_KIND_UNSPECIFIED, API_KEY_KIND_PERSONAL, API_KEY_KIND_DEVICE, API_KEY_KIND_SERVICE_PRINCIPAL, API_KEY_KIND_WORKLOAD_FEDERATION, API_KEY_KIND_CONNECTED_APP, API_KEY_KIND_CONNECTOR, API_KEY_KIND_FUNCTION, API_KEY_KIND_OTHER_SYSTEM The maximum number of entries to return, from 1 to 100. Defaults to 25 when 0.
The order of the entries. Defaults to SORT_BY_REQUESTS.
SORT_BY_UNSPECIFIED, SORT_BY_REQUESTS, SORT_BY_THROTTLED Only include entries with at least one throttled request.
Response
Successful response
The RateLimitServiceGetUsageReportResponse message.
The top entries in sort_by order, at most max_entries of them. Ranking happens over every matching consumer before truncation.
The number of consumers that match the filters, including those beyond max_entries.
Served requests summed over every matching consumer, including those beyond max_entries.
Throttled requests summed over every matching consumer, including those beyond max_entries.