Merge branch 'master' of http://g.s5s8.com/alc/iot
This commit is contained in:
commit
a931cac2f6
@ -178,9 +178,10 @@ t = 10
|
|||||||
数据部分为下面描述的json格式(aes加密)
|
数据部分为下面描述的json格式(aes加密)
|
||||||
|
|
||||||
```json:
|
```json:
|
||||||
[
|
{
|
||||||
{
|
|
||||||
"service_name": "从该设备端的哪个服务采集的数据",
|
"service_name": "从该设备端的哪个服务采集的数据",
|
||||||
|
// 如果为空,就表明是微服务产生的数据,如果有值,表示是设备产生的数据
|
||||||
|
"device_id": $uuid 非设备产生的device_id为空
|
||||||
"at": int, 精确到毫秒
|
"at": int, 精确到毫秒
|
||||||
// 该微服务采集的数据,是一个包含map的列表类型,map的内容可以由微服务自己指定
|
// 该微服务采集的数据,是一个包含map的列表类型,map的内容可以由微服务自己指定
|
||||||
// 目前一般的格式是"metric-name": $value样式的数据
|
// 目前一般的格式是"metric-name": $value样式的数据
|
||||||
@ -189,7 +190,7 @@ t = 10
|
|||||||
"name1": "test"
|
"name1": "test"
|
||||||
"name2": 124,
|
"name2": 124,
|
||||||
"name3": false,
|
"name3": false,
|
||||||
"device_id": $uuid 非设备产生的device_id为空
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
// 微服务自身可以生成tag,用于微服务指定自己的一些性质,目前使用得不多,以后可以扩展,
|
// 微服务自身可以生成tag,用于微服务指定自己的一些性质,目前使用得不多,以后可以扩展,
|
||||||
@ -199,8 +200,8 @@ t = 10
|
|||||||
"tag2", "value2"
|
"tag2", "value2"
|
||||||
}
|
}
|
||||||
// todo 在insert数据到influxdb的时候需要增加service_name + host_uuid
|
// todo 在insert数据到influxdb的时候需要增加service_name + host_uuid
|
||||||
}
|
}
|
||||||
]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## ping结构
|
## ping结构
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user