Get a list of team resource statistics

Basic Information

This interface is mainly used to obtain a list of team resource statistics

请求路径

  1. POST /openapi/v1/teams/resource

Body 请求体示例

  1. [
  2. {
  3. "tenant_id": "string",
  4. "region_name": "string"
  5. }
  6. ]

request parameters

nameLocationtyperequiredChinese nameillustrate
bodybodyTenantRegionListnonone

return result

status codeStatus code meaningillustratedata model
200OKsuccessInline

return data structure

nametyperequiredconstraintChinese nameillustrate
anonymous[TeamAppsResource]falsenonenone
» total_cpuintegerfalsenonetotal cputotal cpu
» total_memoryintegerfalsenoneTotal memorytotal memory
» used_cpuintegerfalsenoneused cpuoccupy cpu
» used_memoryintegerfalsenoneUsed memoryused internal memory
» used_cpu_percentagenumberfalsenoneUsed cpu percentagepercentage of cpu
» used_memory_percentagenumberfalsenoneUsed memory percentagepercentage of memory used
» team_idstringtruenoneteam idTeam ID
» team_namestringtruenoneTeam nameTeam Name
» team_aliasstringtruenoneTeam aliasTeam nickname

响应示例

  1. [
  2. {
  3. "total_cpu": 0,
  4. "total_memory": 0,
  5. "used_cpu": 0,
  6. "used_memory": 0,
  7. "used_cpu_percentage": 0,
  8. "used_memory_percentage": 0,
  9. "team_id": "string",
  10. "team_name": "string",
  11. "team_alias": "string"
  12. }
  13. ]

Model

TenantRegionList

  1. {
  2. "tenant_id": "string",
  3. "region_name": "string"
  4. }

Attributes

nametyperequiredconstraintChinese nameillustrate
tenant_idstringtruenoneTenant idtenant id
region_namestringtruenoneRegion namedata center name

TeamAppsResource

  1. {
  2. "total_cpu": 0,
  3. "total_memory": 0,
  4. "used_cpu": 0,
  5. "used_memory": 0,
  6. "used_cpu_percentage": 0,
  7. "used_memory_percentage": 0,
  8. "team_id": "string ",
  9. "team_name": "string",
  10. "team_alias": "string"
  11. }

Attributes

nametyperequiredconstraintChinese nameillustrate
total_cpuintegerfalsenonetotal cputotal cpu
total_memoryintegerfalsenoneTotal memorytotal memory
used_cpuintegerfalsenoneused cpuoccupy cpu
used_memoryintegerfalsenoneUsed memoryused internal memory
used_cpu_percentagenumberfalsenoneUsed cpu percentagepercentage of cpu
used_memory_percentagenumberfalsenoneUsed memory percentagepercentage of memory used
team_idstringtruenoneteam idTeam ID
team_namestringtruenoneTeam nameTeam Name
team_aliasstringtruenoneTeam aliasTeam nickname