map/docs/datacollect/README.md
2024-07-02 16:45:40 +08:00

51 lines
900 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 数据采集
## 采集配置说明
采集程序配置存放在: `/das/conf/collector.json`
如果系统配置更新将生成配置更新文件: `/das/conf/collector.json.update`
!> 此处为配置文件的内容说明。
## 采集程序与系统交互通道
采集程序与系统间采用Websocket方式通讯 访问本地断开端口: 7790 。
报文格式为`json`
## 通讯报文
### 节点上线请求
?> 方向: `采集` -> `系统`
```json
{
//节点ID
"nodeId" : "nx10928234",
//消息ID
"messageId": "123512351235123",
//命令
"action" : "online"
}
```
### 节点上线响应
?> 方向: `系统` -> `采集`
```json
{
//节点ID
"nodeId" : "nx10928234",
//消息ID
"messageId": "123512351235123",
//命令
"action" : "online",
//名称执行结果
"result" : true,
//出错时的消息。
"error" : ""
}