yds 11 months ago
parent
commit
5f3143cdde
3 changed files with 25 additions and 23 deletions
  1. 0 16
      config/device_info.json
  2. 0 1
      config/module.config.json
  3. 25 6
      config/rediskeys.txt

+ 0 - 16
config/device_info.json

@@ -1,16 +0,0 @@
-{
-    "id":"",
-    "name":"",
-    "code":"",
-    "model":"",
-    "type":"",
-    "serverId":"",
-    "desciption":"",
-    "moduleId":"",
-    "status":"",
-    "moduleConfig":{
-见module_config.json
-    }
-
-}
-

+ 0 - 1
config/module.config.json

@@ -1,5 +1,4 @@
 {
-
     "name": "",
     "code": "",
     "model": "",

+ 25 - 6
config/rediskeys.txt

@@ -1,6 +1,25 @@
-设备信息:
-类型:List
-key格式: 
-device_info:ServerId
-例:device_info:001
-内容:见device_info.json
+节点配置:
+数据类型:Hash
+Redis Key格式:{前缀}:{ServerId}
+数据集合的字段名:节点ID(设备、净化方案、算法等等ID)
+配置内容:
+
+1、设备信息:
+Redis Key前缀:device
+
+
+2、净化方案信息:
+Redis Key前缀:purify
+
+3、算法信息:compute
+
+4、存储信息: store
+
+5、传输信息: transfer
+
+
+示例:
+采集服务C001的配置:
+key: device:C001
+读取全部设备配置Redis指令: HGETALL device:C001
+读取12345号设备的配置Redis指令:HGET device:C001 12345