Reporting System Restart Status
When the edge side receives the restart command, it performs the system check. If the system is normal, the edge system returns a message indicating that the restart is allowed. When the system is performing operations such as upgrade and configuration import, the system returns a message indicating that the system cannot be restarted and the reason.
Message instance
{
"header": {
"msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
"parent_msg_id": "",
"timestamp": 1550107087319,
"sync": false
},
"route": {
"source": "hardware",
"group": "hub",
"operation": "update",
"resource": "websocket/restart_result"
},
"content": {
}
}
Parameter description
The content message is described as follows:
{
"restartable": true | false,
"reason": "System status abnormal"
}
Elements are defined as follows:
Level-1 Resource Name |
Description |
Type |
Value Range |
|---|---|---|---|
restartable |
Restart status |
string |
The value can only be true or false. In normal cases, true is returned. When the system is performing an operation such as upgrade or configuration import, false and the detailed cause description are returned. |
reason |
Failure cause |
string |
The return format is ERR.errcode, detailinfo. For details about the error code, see Error Code Description. |