医疗智能体 EIHealth-获取资源监控数据:URI

时间:2023-11-01 16:18:53

URI

GET /v1/{project_id}/metric-data

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

华为云项目ID,您可以从获取项目ID中获取。

表2 Query参数

参数

是否必选

参数类型

描述

from_time

Long

查询监控数据起始时间,UNIX时间戳,单位毫秒,不填时默认为当前时间

to_time

Long

查询数据截止时间,UNIX时间戳,单位毫秒,不填时默认为当前时间

period

String

监控数据周期。枚举值,取值范围:real_time(实时数据)、five_minutes(5分钟粒度)、fifteen_to_twenty_minutes(15-20分钟粒度)、one_hour(1小时粒度),不填时默认为real_time

缺省值:real_time

method

String

统计方法。枚举值,取值范围:max(最大值)、min(最小值)、average(平均值),不填时默认为max

缺省值:max

metric_name

String

查询的监控指标名称,取值范围:

  • node_cpu_util
  • node_mem_util
  • node_disk_util
  • node_network_incoming_bytes_rate_inband
  • node_network_outgoing_bytes_rate_inband
  • node_total_cpu_util
  • node_total_mem_util
  • node_total_allocatable_cpu_util
  • node_total_allocatable_mem_util
  • node_bms_gpu_decoder_utilization
  • node_bms_gpu_encoder_utilization
  • node_bms_gpu_memory_total
  • node_bms_gpu_memory_usage
  • node_bms_gpu_memory_used
  • node_bms_gpu_power_draw
  • node_bms_gpu_temperature
  • node_bms_gpu_utilization
  • node_gpu_utilization
  • node_gpu_memory_usage
  • performance_data_read_io_bytes
  • performance_data_write_io_bytes
  • performance_total_io_bytes
  • performance_iops
  • database_cpu_util
  • database_mem_util
  • database_bytes_in
  • database_bytes_out
  • database_iops
  • storage_download_bytes
  • storage_upload_bytes
  • storage_request_count_get_per_second
  • storage_request_count_put_per_second
  • storage_request_count_delete_per_second
  • storage_request_count_per_second
  • storage_capacity_total
  • storage_object_num_all
  • storage_download_extranet_bytes

resource_id

String

查询的监控资源对象id,当查询存储资源和计算节点资源中的集群监控数据时,不需要填写资源id

最小长度:1

最大长度:128

device_id

String

显卡id,仅查询裸金属节点的gpu监控时,需要指定

最小长度:1

最大长度:128

support.huaweicloud.com/api-eihealth/eihealth_33_00102.html