/internal/billing/metering/report
服务间内部调用:接收并记录各微服务上报的资源使用量(计量计费),用于生成账单和配额检查
Request Body
Schema: dto.MeteringReportRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
amount |
integer |
Yes | 1000 |
||
resource_type |
string |
Yes | api_calls |
||
app_id |
string |
No | app_001 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | 使用量上报成功 | object |
| 400 | 请求参数错误 | object |
| 401 | 未授权 | object |
| 500 | 服务器内部错误 | object |