注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 五道口API

alibaba.rex.skyeye.core.edge.sysmonitor.device.get (根据设备id查询同子公司资源使用信息)

根据设备id查询同子公司资源使用信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
merchant_code String 必须 CSSJ 商家编码
device_id String 必须 1234 设备id

响应参数

名称 类型 示例值 描述
data AvailableDevicesResponse 天眼服务器设备列表
  • candidates
  • CandidateDevice []
  • 入参设备所属子公司下其他服务器列表
  • └ gpu_free_count
  • Number
  • 2
  • 空闲gpu数量
  • └ log_time_ms
  • Number
  • 1770275636508
  • sls日志时间
  • └ mem_usage
  • BigDecimal
  • 100
  • 设备内存使用占比
  • └ ip
  • String
  • 1.1.1.1
  • 设备ip
  • └ cpu_total_usage
  • BigDecimal
  • 2.65
  • 设备cpu使用占比
  • └ available_mem_g_b
  • BigDecimal
  • 42.25
  • 可用内存GB
  • gpu_infos
  • GpuInfos []
  • gpu信息列表
  • └ mem_usage
  • BigDecimal
  • 12.78
  • gpu内存使用百分比
  • └ mem_free_g_b
  • BigDecimal
  • 12.65
  • gpu可用内存GB
  • └ usage
  • BigDecimal
  • 0
  • gpu使用占比
  • └ gpu_count
  • Number
  • 2
  • 设备gpu数量
  • └ device_id
  • String
  • 9096c84f56773fd4a17de38608d77b80
  • 设备id
  • └ cpu_core_num
  • Number
  • 8
  • cpu核心数量
  • └ load1
  • BigDecimal
  • 0.24
  • cpu近1分钟平均负载
  • └ ou_code
  • String
  • 8028
  • 入参设备所属门店编码
  • └ request_device_id
  • String
  • t4svr-4ac5c30abf6b8175560eeb627c
  • 入参服务器设备id
  • └ subsidiary_code
  • String
  • 0571
  • 入参设备所属子公司编码
iot_success Boolean true 是否成功
msg_info String null 错误信息
msg_code String null 错误编码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaRexSkyeyeCoreEdgeSysmonitorDeviceGetRequest req = new AlibabaRexSkyeyeCoreEdgeSysmonitorDeviceGetRequest();
req.setMerchantCode("CSSJ");
req.setDeviceId("1234");
AlibabaRexSkyeyeCoreEdgeSysmonitorDeviceGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_rex_skyeye_core_edge_sysmonitor_device_get_response>
    <data>
        <candidates>
            <candidate_device>
                <gpu_free_count>2</gpu_free_count>
                <log_time_ms>1770275636508</log_time_ms>
                <mem_usage>100</mem_usage>
                <ip>1.1.1.1</ip>
                <cpu_total_usage>2.65</cpu_total_usage>
                <available_mem_g_b>42.25</available_mem_g_b>
                <gpu_infos>
                    <gpu_infos>
                        <mem_usage>12.78</mem_usage>
                        <mem_free_g_b>12.65</mem_free_g_b>
                        <usage>0</usage>
                    </gpu_infos>
                </gpu_infos>
                <gpu_count>2</gpu_count>
                <device_id>9096c84f56773fd4a17de38608d77b80</device_id>
                <cpu_core_num>8</cpu_core_num>
                <load1>0.24</load1>
            </candidate_device>
        </candidates>
        <ou_code>8028</ou_code>
        <request_device_id>t4svr-4ac5c30abf6b8175560eeb627c</request_device_id>
        <subsidiary_code>0571</subsidiary_code>
    </data>
    <iot_success>true</iot_success>
    <msg_info>null</msg_info>
    <msg_code>null</msg_code>
</alibaba_rex_skyeye_core_edge_sysmonitor_device_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部