Records - tuple of named values

Hello,

I try to write and read in InfluxDB2 data like

{"id": 1,
 "lon": 39.031702,
 "lat": 125.754254,
 "params": {
   "ready": true,
   "sensor": 42
 }

I haven’t found a way to do this through the telegraph (line protocol) or anything else.

How to write and query data with type record?

https://docs.influxdata.com/influxdb/v2.0/reference/cli/influx/write/
https://docs.influxdata.com/influxdb/v2.0/write-data/
https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/schema-design/

sample from command line csv import:

/usr/bin/docker container exec -i -t dck_influxdb influx write --skip-verify -c default -b your_bucket -f /var/lib/influxdb2/data_file.csv --header “#constant measurement,your_measurement” --header “#datatype tag,tag,tag,tag,integer”

your_csv_structure:

#tag,tag,tag,tag,field (choose your type: strings, floats, integers, or booleans)
id,lon,lat,ready,sensor
1,39.031702,125.754254,true,42