上报配置生效进度
执行配置生效接口时,在生效进度未达到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/profile_effect"
},
"content": {
"profile_name": "profile001",
"percentage": "30%",
"result": " processing ",
"reason": "System status abnormal"
}
}
参数说明
content消息内容描述如下:
{
"profile_name": "profile001",
"percentage": "30%",
"result": "in progress",
"reason": "System status abnormal"
}
各元素定义如下:
一级资源名称 |
描述 |
类型 |
取值范围 |
|---|---|---|---|
profile_name |
配置文件名 |
string |
32字节 |
percentage |
收集进度 |
string |
取值范围为0%~100% |
result |
收集结果 |
string |
取值为success、failed、partial failed和in progress |
reason |
失败原因 |
string |
返回格式统一为:ERR.errcode,detailinfo,具体错误码信息,请参见错误码说明。 |
父主题: 上行消息接口