GET /admin/billing/usage/{tenant_id}/endpoints
与用户面 /billing/usage/{tenant_id}/endpoints 同体、同租户范围;供控制台在 admin 平面读取。
计费服务 `bearerAuth` application/json
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
tenant_id |
path |
string |
是 |
|
|
|
租户ID |
app_id |
query |
string |
否 |
|
|
|
应用ID(可选) |
limit |
query |
integer |
否 |
20 |
|
|
返回条数 |
days |
query |
integer |
否 |
7 |
|
|
统计天数 |
引用的 Schema
service-billing/internal/handler/dto.EndpointUsageDetailResponse
service-billing/internal/handler/dto.EndpointUsageItem
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
avg_latency_ms |
number |
否 |
12.5 |
|
|
endpoint |
string |
否 |
|
|
|
error_count |
integer |
否 |
50 |
|
|
request_count |
integer |
否 |
15000 |
|
|
service-billing/internal/handler/dto.EndpointUsageListResponse