信息收集

消息实例

{
    "header": {
        "msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
        "parent_msg_id": "",
        "timestamp": 1550107087319,
        "sync": false
    },
    "route": {
        "source": "EdgeManager",
        "group": "hardware",
        "operation": "update",
        "resource": "websocket/info_collect"
    },
    "content": {
    }
}

参数说明

content消息内容描述如下:

{
    "type": "all",
    "module": "all",
    "https_server": {
        "url": "POST https://FDAddr/log.tar.gz",
        "user_name": "userName",
        "password": "password"
    }
}

一级资源

二级资源

描述

类型

取值范围

type

-

日志类型

string

当前只支持all类型,包含操作日志和运行日志

module

-

模块名称

string

当前只支持all类型,包含NPU、操作系统驱动、MindEdge OM日志

https_server

url

上传日志url连接

string

最长2048字节,^POST https[^@\n!\\|;&$<>` ]+$,并且不包含..

user_name

用户名称

string

^[a-zA-Z][a-zA-Z0-9-_]{1,64}[a-zA-Z0-9]$

上传日志到FusionDirector的账号,详细信息请参考《FusionDirector 维护指南

password

密码

string

长度范围为8~20字节,复杂度由上层保证

上传日志到FusionDirector的账号,详细信息请参考《FusionDirector 维护指南

返回结果

{
    "header":{
        "msg_id":"10b44ba5-5df9-4279-9281-c0ac90a6ec09",
        "parent_msg_id": "",
        "timestamp":1652187944413,
        "sync": false
    },
    "route":{
        "source":"hardware",
        "group":"hub",
        "operation":"update",
        "resource":"websocket/info_collect_process"
    },
    "content":"{"type": "all", "module": "all", "percentage": "100%", "result": "success", "reason": ""}"
}