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

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

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

计费服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
tenant_id path string Yes 租户ID
app_id path string Yes 应用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