我正在检查是否可以将 kairosdb 用于我的项目。我正在检查 REST api,我有一个用例,我需要保存我的设备状态和状态(状态告诉设备是打开还是关闭,状态告诉我设备是被占用还是空着)
kairosdb version: 1.1.1
I came across this link https://kairosdb.github.io/docs/build/html/restapi/AddDataPoints.html
but when I try to post data from REST client I am getting the error 400 BAD Request error. The error is
{"errors":["Unregistered data point type 'complex-number'"]}
My request I am posting is ,
{
"name": "device_data",
"type": "complex-number",
"datapoints": [
[
1470897496,
{
"state": 0,
"status": "empty"
}
]
],
"tags": {
"device_id": "abc123"
}
}
In tried doing the same in Java as specified in https://kairosdb.github.io/docs/build/html/kairosdevelopment/CustomData.html
我得到同样的错误我请让我知道如何使用 REST 中的复数或自定义数据类型