Reporting Configuration Validation Progress

When the interface for making the configuration take effect is executed, the edge node reports the progress to the central node every 5 seconds until the progress reaches 100%.

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/profile_effect"
    },
    "content": {
        "profile_name": "profile001",
        "percentage": "30%",
        "result": " processing ",
        "reason": "System staus abnormal"
    }
}

Parameter description

The content message is described as follows:

{
    "profile_name": "profile001",
    "percentage": "30%",
    "result": "in progesss",
    "reason": "System staus abnormal"
}

Elements are defined as follows:

Level-1 Resource Name

Description

Type

Value Range

profile_name

Indicates the configuration file name.

string

32 bytes

percentage

Collection progress

string

The value range is 0% to 100%.

result

Collection result

string

The value can be success, failed, partial failed, or in progress.

reason

Failure cause

string

The return format is ERR.errcode, detailinfo. For details about the error code, see Error Code Description.