Post Topology Info


Post Topology Info 节点上报设备连接拓扑信息。

节点类型

EnOS。

输入和输出能力

该节点具有多个入口点和 2 个出口点 (成功/失败)。

节点属性

../../../_images/post_topology_info.png


名称

该节点的名称。


描述

该节点的描述。

示例

全量上报

输入示例

{
  "MetaData": {
    "messageType": "ConnectStatePost",
    "assetId": "assetId",
    "deviceKey": "deviceKey",
    "productKey": "productKey",
    "orgId": "yourOrgId",
    "ts": "1654593254444"
  },
  "Body": {
    "nodes": [
      {
        "name": "name4",
        "state": 1,
        "nodeId": "#xx4",
        "assetId": "oyuanlruc"
      },
      {
        "name": "name3",
        "state": 1,
        "nodeId": "#xx3",
        "assetId": "assetId3"
      },
      {
        "name": "name5",
        "state": 1,
        "nodeId": "#xx5",
        "assetId": "assetId5"
      },
      {
        "name": "name222",
        "state": 1,
        "nodeId": "#xx2",
        "info": "no heartbeat"
      },
      {
        "name": "name1",
        "state": 1,
        "nodeId": "#xx1",
        "info": "reconnect by nbncg"
      }
    ],
    "isFull": true,
    "relations": {
      "#xx4": [
        "#xx5"
      ],
      "#xx1": [
        "#xx4",
        "#xx2,#xx3"
      ]
    },
    "reportTime": 1654593254394
  }
}

输出示例

{
  "MetaData": {
    "messageType": "ConnectStatePost",
    "assetId": "assetId",
    "deviceKey": "deviceKey",
    "productKey": "productKey",
    "orgId": "yourOrgId",
    "componentResult": "Success",
    "ts": "1654593254444"
  },
  "Body": {
    "nodes": [
      {
        "name": "name4",
        "state": 1,
        "nodeId": "#xx4",
        "assetId": "oyuanlruc"
      },
      {
        "name": "name3",
        "state": 1,
        "nodeId": "#xx3",
        "assetId": "assetId3"
      },
      {
        "name": "name5",
        "state": 1,
        "nodeId": "#xx5",
        "assetId": "assetId5"
      },
      {
        "name": "name222",
        "state": 1,
        "nodeId": "#xx2",
        "info": "no heartbeat"
      },
      {
        "name": "name1",
        "state": 1,
        "nodeId": "#xx1",
        "info": "reconnect by nbncg"
      }
    ],
    "isFull": true,
    "relations": {
      "#xx4": [
          "#xx5"
      ],
      "#xx1": [
        "#xx4",
        "#xx2,#xx3"
      ]
    },
    "reportTime": 1654593254394
  }
}

增量上报

输入示例

{
  "MetaData": {
    "messageType": "ConnectStatePost",
    "assetId": "assetId",
    "deviceKey": "deviceKey",
    "productKey": "productKey",
    "orgId": "yourOrgId",
    "ts": "1654593471665"
  },
  "Body": {
    "nodes": [
      {
        "name": "name3",
        "state": 2,
        "nodeId": "#xx3",
        "assetId": "assetId3",
        "info": "connection lost"
      },
      {
        "name": "name22",
        "state": 1,
        "nodeId": "#xx2",
        "info": "device reconnected"
      }
    ],
    "isFull": false,
    "relations": {},
    "reportTime": 1654593471616
  }
}

输出示例

{
  "MetaData": {
    "messageType": "ConnectStatePost",
    "assetId": "assetId",
    "deviceKey": "deviceKey",
    "productKey": "productKey",
    "orgId": "yourOrgId",
    "componentResult": "Success",
    "ts": "1654593471665"
  },
  "Body": {
    "nodes": [
      {
        "name": "name3",
        "state": 2,
        "nodeId": "#xx3",
        "assetId": "assetId3",
        "info": "connection lost"
      },
      {
        "name": "name22",
        "state": 1,
        "nodeId": "#xx2",
        "info": "device reconnected"
      }
    ],
    "isFull": false,
    "relations": {},
    "reportTime": 1654593471616
  }
}