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

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

按应用维度查询资源使用量统计(用户数、存储量、API调用次数)。默认查询近 30 天数据。

计费服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
tenant_id path string Yes 租户ID
app_id path string Yes 应用ID
start_date query string No 30天前 开始日期 (YYYY-MM-DD)
end_date query string No 今天 结束日期 (YYYY-MM-DD)

Responses

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

Referenced Schemas

dto.UsageStatItem

FieldTypeRequiredExampleConstraintsDescription
limit integer No 100
unit string No
used integer No 8

dto.UsageStatsDetailResponse

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

dto.UsageStatsResponse

FieldTypeRequiredExampleConstraintsDescription
api_calls dto.UsageStatItem No
app_id string No app_001
period_end string No 2026-04-01
period_start string No 2026-03-01
storage dto.UsageStatItem No
tenant_id string No tnt_xyz789
users dto.UsageStatItem No