下载
中文
注册

上报信息收集进度

执行信息收集时,收集进度未达到100%前,由边缘侧定时5秒发布一次。

消息实例

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

参数说明

content消息内容描述如下:

{
    "type": "all",
    "module": "all",
    "percentage": "30%",
    "result": "processing",
    "reason":""
}

各元素定义如下:

一级资源名称

描述

类型

取值范围

type

收集信息类型

string

当前只支持all

module

日志模块

string

当前只支持APP和all

percentage

收集进度

string

取值范围为0%~100%

result

收集结果

string

取值为success、failed和processing

reason

收集日志失败原因

string

返回格式统一为:ERR.errcode,detailinfo,具体错误码信息,请参见错误码说明