InfluxDB:在查询结果中,为什么"值" key的值是否嵌套在数组中?

时间:2017-12-12 05:20:19

标签: influxdb

我有一些数据存储在InfluxDB中。以下是两个查询结果:

http://influxdb.server/query?u=test&p=test&db=sensors&q=SELECT * FROM /^dwd\..*\.zehn-minuten\.niederschlag/ GROUP BY * ORDER BY DESC LIMIT 1
{"results":[{"statement_id":0,"series":[
  {"name":"dwd.str.schnarrenberg.zehn-minuten.niederschlag","columns":["time","QN","RWS_10","RWS_DAU_10","RWS_IND_10"],"values":[["2017-12-10T23:50:00Z",2,0,5,1]]},
  {"name":"dwd.str.flughafen.zehn-minuten.niederschlag","columns":["time","QN","RWS_10","RWS_DAU_10","RWS_IND_10"],"values":[["2017-12-10T23:50:00Z",2,0,0,0]]}
]}]}

两者都包含以下段

"values":[[..., ..., ...]]

将值嵌套在数组中的原因是什么?

另外,为什么结果包含在数组中?

"results":[{

0 个答案:

没有答案