A AuthMS API Wiki API Reference iam.tianv.com →

GET /billing/statistics/{tenant_id}

查询租户的综合计费统计,包括活跃用户数、资源使用量等汇总指标。可选按 app_id 过滤。

计费服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
tenant_id path string Yes 租户ID
app_id query string No 应用ID(可选)

Responses

StatusDescriptionSchema
200租户统计查询成功dto.TenantStatisticsDetailResponse
400请求参数错误object
401未授权object
500服务器内部错误object

Referenced Schemas

dto.TenantStatisticsDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.TenantStatisticsResponse No
message string No
timestamp string No

dto.TenantStatisticsResponse

FieldTypeRequiredExampleConstraintsDescription
active_users integer No 45
app_id string No app_001
mrr number No 99
retention_rate number No 0.95
tenant_id string No tnt_xyz789
total_spend number No 1188