GET /billing/usage/{tenant_id}/apps/{app_id}/current

按应用维度查询当前计费周期内的资源使用量,用于多应用租户的独立用量监控

计费服务 `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
tenant_id path string 是 租户ID
app_id path string 是 应用ID

响应

状态描述Schema
200当前使用量查询成功service-billing/internal/handler/dto.CurrentUsageDetailResponse
400请求参数错误object
401未授权object
500服务器内部错误object

引用的 Schema

service-billing/internal/handler/dto.CurrentUsageDetailResponse

字段类型必填示例约束描述
code integer 否
data service-billing/internal/handler/dto.CurrentUsageResponse 否
message string 否
timestamp string 否

service-billing/internal/handler/dto.CurrentUsageResponse

字段类型必填示例约束描述
api_calls_today integer 否 150
storage_gb number 否 2.5
users integer 否 8