HTTP/1.1 400 Bad Request
Content-Type: application/json
Request-Id: 4cbc4d09-8f57-11e6-8022-000000000000
X-Influxdb-Version: 1.0.1
Date: Tue, 11 Oct 2016 02:06:19 GMT
Content-Length: 142
{"error":"field type conflict: input field \"booleanonly\" on measurement \"tobeornottobe\" is type float64, already exists as type boolean"}
Influxdb HTTP API
Influxdb的http api的请求端口为:
8086
Writing Data
_
/write
api支持一次写入多条数据或者从文件中读取, 但每条数据必须被组织在单行中_Schema Design
Influxdb是schemaless database(无模式), 但是对于同一个
measurement
,tag field
对应的tag value
的_数据类型必须一致_curl -i -XPOST 'http://localhost:8086/write?db=mydb' --data-binary 'tobeornottobe booleanonly=true'
curl -i -XPOST 'http://localhost:8086/write?db=mydb' --data-binary 'tobeornottobe booleanonly=5'
Querying Data