我有一些数据存储在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":[{