Open arsh09 opened 1 month ago
Query parameters are not supported for now in the Zenoh REST plugin so it's not possible to set the consolidation strategy.
If you are looking at using Zenoh in a web application, a TypeScript API is now available and it supports all the Zenoh options: https://github.com/eclipse-zenoh/zenoh-ts
Describe the bug
I have an InfluxDB running and its relevant plugin running on a Zenoh-router as well as a REST plugin.
From the influxdb-client, I can see that the key-expression has multiple rows for the series in the database. Unfortunately, when I run the following:
I only get the last timeseries row instead of all of the data. When setting the RUST_LOG=debug, and looking at the terminal output, I noticed the following SQL run on the influxdb:
Where 'limit 1' is limiting the output to 1. I do not find any documentation where the REST API can send the 'limit' in the query. I think adding a selector such as '_limit' similar to '_time' might be helpful.
To reproduce
1) Start a router with influxdb and rest api 2) Publish a few measurements via curl command 3) Try to get all the measurements (it will return only the last one).
System info
Zenoh - zenohd v1.0.0-beta.4 built with rustc 1.75.0 (82e1608df 2023-12-21) Influx - InfluxDB shell version: 1.6.7~rc0 System - Ubuntu 20.04 - Digital Ocean Droplet