influxdata / influxdata/influxdb-java
InfluxDBMapper and necessity of @Measurement
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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