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

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

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

计费服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
tenant_id path string Yes 租户ID
app_id path string Yes 应用ID

Responses

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

Referenced Schemas

dto.CurrentUsageDetailResponse

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

dto.CurrentUsageResponse

FieldTypeRequiredExampleConstraintsDescription
api_calls_today integer No 150
storage_gb number No 2.5
users integer No 8