GET /admin/billing/metered-usage/{tenant_id}
查询指定租户的计量计费使用记录,包含各资源类型的包含量、超额量和超额费用。支持按应用和时间范围过滤。
计费服务 `bearerAuth` application/json
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
tenant_id |
path |
string |
是 |
|
|
|
租户ID |
app_id |
query |
string |
否 |
|
|
|
应用ID(可选) |
start |
query |
string |
否 |
|
|
|
开始日期 (YYYY-MM-DD) |
end |
query |
string |
否 |
|
|
|
结束日期 (YYYY-MM-DD) |
引用的 Schema
service-billing/internal/handler/dto.MeteredBillingListResponse
service-billing/internal/handler/dto.MeteredBillingResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
app_id |
string |
否 |
|
|
|
id |
string |
否 |
|
|
|
overage_amount |
string |
否 |
|
|
|
overage_units |
integer |
否 |
|
|
|
period_end |
string |
否 |
|
|
|
period_start |
string |
否 |
|
|
|
resource_type |
string |
否 |
|
|
|
status |
string |
否 |
|
|
|
tenant_id |
string |
否 |
|
|
|
total_usage |
integer |
否 |
|
|
|