influxdata / influxdata/influxdb-java

InfluxDBMapper and necessity of @Measurement

Open
#701 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.2k
Forks
469
PR merge metrics
No merged PRs in 30d

Description

Hello,
It looks that when using InfluxDBMapper, the model classes must be annotated with a @Measurement annotation. Is it possible to not having @Measurement annotation present and its related information (db name, measurement, etc) to have as part of the influx db client?
The thing is that db related information may be known during run time only so hardcoding them into the @Measurement is not an option. I would basically would want to annotate my model classes my @Column annotation only.
Thanks for a reply!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing InfluxDBMapper and the @Measurement and @Column annotations to understand how measurement and database information are currently obtained. Determine whether runtime client-provided information can replace the required model annotation, and define completion as models using only @Column while runtime database details remain configurable.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.