医疗智能体 EIHEALTH-批量获取资源统计数据:请求参数

时间:2024-05-11 08:28:28

请求参数

表2 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

用户Token。Token认证就是在调用API的时候将Token加到请求消息头,从而通过身份认证,获得操作API的权限,获取Token接口响应消息头中X-Subject-Token的值即为Token。

表3 请求Body参数

参数

是否必选

参数类型

描述

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

  • five_minutes

  • fifteen_to_twenty_minutes

  • one_hour

method

String

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

枚举值:

  • max

  • min

  • average

resource_ids

Array of strings

查询的监控资源对象id集合

最小长度:1

最大长度:128

数组长度:1 - 50

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