A AuthMS API Wiki API Reference iam.tianv.com →

POST /internal/billing/metering/report

服务间内部调用:接收并记录各微服务上报的资源使用量(计量计费),用于生成账单和配额检查

计费服务 - 内部接口 None application/json

Request Body

Schema: dto.MeteringReportRequest

FieldTypeRequiredExampleConstraintsDescription
amount integer Yes 1000
resource_type string Yes api_calls
app_id string No app_001

Responses

StatusDescriptionSchema
200使用量上报成功object
400请求参数错误object
401未授权object
500服务器内部错误object