GET /billing/usage/{tenant_id}/endpoints
查询API端点调用次数TopN排行,含请求数、错误数和平均延迟,用于分析热点接口
计费服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
tenant_id |
path |
string |
Yes |
|
|
|
租户ID |
app_id |
query |
string |
No |
|
|
|
应用ID(可选) |
limit |
query |
integer |
No |
20 |
|
|
返回条数 |
days |
query |
integer |
No |
7 |
|
|
统计天数 |
Referenced Schemas
dto.EndpointUsageDetailResponse
dto.EndpointUsageItem
| Field | Type | Required | Example | Constraints | Description |
avg_latency_ms |
number |
No |
12.5 |
|
|
endpoint |
string |
No |
|
|
|
error_count |
integer |
No |
50 |
|
|
request_count |
integer |
No |
15000 |
|
|
dto.EndpointUsageListResponse
| Field | Type | Required | Example | Constraints | Description |
app_id |
string |
No |
app_001 |
|
|
days |
integer |
No |
7 |
|
|
endpoints |
array of
See dto.EndpointUsageItem |
No |
|
|
|
tenant_id |
string |
No |
tnt_xyz789 |
|
|