get_user_analytics
Get per-end-user usage breakdown: total requests, cost, latency, models used, recent calls. Supports filtering by user ID.
Instructions
Get per-end-user usage breakdown — total requests, cost, latency, models used, recent calls. The 'user' here is the customer's end-user, identified by the x-spanlens-user header the SDK attaches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows when returning the top-N list. Default 20. | |
| userId | No | When set, returns the detail view for a single end-user. When omitted, returns the top-N usage list across all end-users. |