Hello,
I’m using Influx OSS v2.7.1 to store data from sensors. I have design schema to have tags like id
to reference each data point and 3 fields - result
, phenomenonTime
, and resultTime
- which are string. So when I query the data I use group by id
to group records that have same id
into the same table. In the query result it has 1 field value per record (according to the attached picture), but I want all of the fields to be in 1 record.
So, my questions my questions are:
- Is there a way that I can query all fields I have in each data point into 1 record?
- If I want to group the data by
id
and do use pagination parameters, how can I do that?
I have come up with flux query command below, trying to group data byid
and limit the query result to 10 groups but the actual query result doesn’t limit to 10 groups.
from(bucket: "observation_str_5s")
|> range(start: 2023-07-28T16:53:15.000Z, stop: 2023-08-02T16:53:15.000Z)
|> filter(fn: (r) =>
r._measurement == "64ab8ab0add4a23c51ad2360"
)
|> group(columns: ["id"])
|> limit(n: 10)
Thank you in advance for all assistance and suggestions.