GET /billing/statistics/{tenant_id}/apps/{app_id}

按应用维度查询租户的计费和用量综合统计,含活跃用户数和资源使用概览

计费服务 `bearerAuth` application/json

请求参数

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

响应

状态描述Schema
200租户统计查询成功service-billing/internal/handler/dto.TenantStatisticsDetailResponse
400请求参数错误object
401未授权object
500服务器内部错误object

引用的 Schema

service-billing/internal/handler/dto.TenantStatisticsDetailResponse

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

service-billing/internal/handler/dto.TenantStatisticsResponse

字段类型必填示例约束描述
active_users integer 否 45
app_id string 否 app_001
mrr number 否 99
retention_rate number 否 0.95
tenant_id string 否 tnt_xyz789
total_spend number 否 1188 「未实现」与「真实 0」在契约上必须可区分——指针 + omitempty, 服务层未提供时字段整体省略(消费方渲染「暂不可用」),杜绝假 0 序列化。