GET /admin/billing/metered-usage/{tenant_id}
查询指定租户的计量计费使用记录,包含各资源类型的包含量、超额量和超额费用。支持按应用和时间范围过滤。
计费服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
tenant_id |
path |
string |
Yes |
|
|
|
租户ID |
app_id |
query |
string |
No |
|
|
|
应用ID(可选) |
start |
query |
string |
No |
|
|
|
开始日期 (YYYY-MM-DD) |
end |
query |
string |
No |
|
|
|
结束日期 (YYYY-MM-DD) |
Referenced Schemas
dto.MeteredBillingListResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
array of
See dto.MeteredBillingResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.MeteredBillingResponse
| Field | Type | Required | Example | Constraints | Description |
app_id |
string |
No |
|
|
|
id |
string |
No |
|
|
|
overage_amount |
string |
No |
|
|
|
overage_units |
integer |
No |
|
|
|
period_end |
string |
No |
|
|
|
period_start |
string |
No |
|
|
|
resource_type |
string |
No |
|
|
|
status |
string |
No |
|
|
|
tenant_id |
string |
No |
|
|
|
total_usage |
integer |
No |
|
|
|