POST /internal/billing/endpoint-stats/import
服务间内部调用:从审计日志等来源批量导入各 API 端点的调用次数、错误数和平均延迟,用于计费和用量分析
计费服务 - 内部接口 None application/json
Responses
| Status | Description | Schema |
| 200 | 端点用量导入成功 | object |
| 400 | 请求参数错误 | object |
| 401 | 未授权 | object |
| 500 | 服务器内部错误 | object |
Referenced Schemas
dto.EndpointStatsImportRecord
| Field | Type | Required | Example | Constraints | Description |
date |
string |
Yes |
2026-05-10 |
|
|
endpoint |
string |
Yes |
|
|
|
app_id |
string |
No |
app_001 |
|
|
avg_latency_ms |
number |
No |
12.5 |
|
|
error_count |
integer |
No |
50 |
|
|
request_count |
integer |
No |
15000 |
|
|