influxdb-java
influxdb-java copied to clipboard
Map POJO to Query
Hi,
is there any way to map created POJO with annotations measurement and columns to Query? To avoid using in each request:
Point point1 = Point.measurement("cpu") .time(System.currentTimeMillis(), TimeUnit.MILLISECONDS) .addField("idle", 90L) .addField("user", 9L) .addField("system", 1L) .build();
@syndybat there is a pull request (PR#519 https://github.com/influxdata/influxdb-java/pull/519) being reviewed that will provide what you need.
Stay tuned. :)
thank you :)