I have been developing a simulation tool that uses a Javscript frontend to present data that is computed by a backend server, which itself sends that data to InfluxDB 2.0. I would now like to implement functionality so that I can click a button that will send me to the flux bucket with a pre-prepared query, and ideally then automatically starts to download that data as a CSV.
I currently have set up the button so that it takes me directly to the bucket (after passing the login screen). Is it possible to create a link which includes a query to automatically get data from the bucket?
I would like to try avoiding the use of the InfluxDB 2 client in JavaScript for the purposes of security and speed (that is, preventing users from directly accessing the database as much as possible); I’m fine with logging in to get the data, however.
I should also specify that the buckets used for holding the data are created at runtime (meaning no setup of variables via the UI beforehand), and that in general, I would like the user to do as little preparation before downloading the data as possible.