influxdb-java icon indicating copy to clipboard operation
influxdb-java copied to clipboard

Map POJO to Query

Open pesmejkal opened this issue 7 years ago • 2 comments

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();

pesmejkal avatar Sep 26 '18 08:09 pesmejkal

@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. :)

fmachado avatar Oct 01 '18 07:10 fmachado

thank you :)

pesmejkal avatar Oct 02 '18 08:10 pesmejkal