Information collection

Message instance

{
    "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": {
    }
}

Parameter description

The content message is described as follows:

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

Level-1 Resource

Level-2 Resource

Description

Type

Value Range

type

-

Log type

string

Currently, only all is supported, including operation logs and run logs.

module

-

Module name

string

Currently, only all is supported, including NPU, OS driver, and MindEdge OM logs.

https_server

url

URL for uploading logs

string

The value contains a maximum of 2048 bytes in the format of ^POST https[^@\n!\\|;&$<>` ]+$, and does not contain two consecutive dots (..).

user_name

User name

string

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

Account for uploading logs to FusionDirector. For details, see the FusionDirector Maintenance Guide.

password

Password

string

The length ranges from 8 to 20 bytes. The complexity is ensured by the upper layer.

Account for uploading logs to FusionDirector. For details, see the FusionDirector Maintenance Guide.

Result returned

{
    "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": ""}"
}