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
200计量计费记录查询成功service-billing/internal/handler/dto.MeteredBillingListResponse
400请求参数错误object
401未授权object
403无权限object
500服务器内部错误object

引用的 Schema

service-billing/internal/handler/dto.MeteredBillingListResponse

字段类型必填示例约束描述
code integer 否
data array of

参见 service-billing/internal/handler/dto.MeteredBillingResponse

否
message string 否
timestamp string 否

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 否