Skip to main content

获取团队资源统计列表

基本信息

该接口主要用于获取团队资源统计列表

请求路径
POST /openapi/v1/teams/resource
Body 请求体示例
[
{
"tenant_id": "string",
"region_name": "string"
}
]

请求参数

名称位置类型必选中文名说明
bodybodyTenantRegionListnone

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

名称类型必选约束中文名说明
anonymous[TeamAppsResource]falsenonenone
» total_cpuintegerfalsenoneTotal cpucpu总额
» total_memoryintegerfalsenoneTotal memory内存总额
» used_cpuintegerfalsenoneUsed cpu占用cpu
» used_memoryintegerfalsenoneUsed memory占用内存
» used_cpu_percentagenumberfalsenoneUsed cpu percentage占用cpu百分比
» used_memory_percentagenumberfalsenoneUsed memory percentage占用内存百分比
» team_idstringtruenoneTeam id团队ID
» team_namestringtruenoneTeam name团队名称
» team_aliasstringtruenoneTeam alias团队昵称
响应示例
[
{
"total_cpu": 0,
"total_memory": 0,
"used_cpu": 0,
"used_memory": 0,
"used_cpu_percentage": 0,
"used_memory_percentage": 0,
"team_id": "string",
"team_name": "string",
"team_alias": "string"
}
]

模型

TenantRegionList

{
"tenant_id": "string",
"region_name": "string"
}

属性

名称类型必选约束中文名说明
tenant_idstringtruenoneTenant id租户id
region_namestringtruenoneRegion name数据中心名称

TeamAppsResource

{
"total_cpu": 0,
"total_memory": 0,
"used_cpu": 0,
"used_memory": 0,
"used_cpu_percentage": 0,
"used_memory_percentage": 0,
"team_id": "string",
"team_name": "string",
"team_alias": "string"
}

属性

名称类型必选约束中文名说明
total_cpuintegerfalsenoneTotal cpucpu总额
total_memoryintegerfalsenoneTotal memory内存总额
used_cpuintegerfalsenoneUsed cpu占用cpu
used_memoryintegerfalsenoneUsed memory占用内存
used_cpu_percentagenumberfalsenoneUsed cpu percentage占用cpu百分比
used_memory_percentagenumberfalsenoneUsed memory percentage占用内存百分比
team_idstringtruenoneTeam id团队ID
team_namestringtruenoneTeam name团队名称
team_aliasstringtruenoneTeam alias团队昵称