POST /internal/billing/endpoint-stats/import
Internal service call: Batch import API endpoint call counts, error counts, and average latency from audit logs, for billing and usage analysis
Billing Service - Internal None application/json
Responses
| Status | Description | Schema |
| 200 | Endpoint usage import successful | object |
| 400 | Invalid request parameters | object |
| 401 | Unauthorized | object |
| 500 | Internal server error | 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 |
|
|