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

Bucket schema management API?

Open bmaso-dw opened this issue 2 years ago • 0 comments
trafficstars

Proposal: A BucketSchemaApi to provide convenient access to the bucket schema management features.

Current behavior:

  • While it is possible to create an "explicit" Bucket through the Java API, it is not possible to create a bucket schema

Desired behavior: I want to be able to create a bucket schema for an explicit schema bucket

Alternatives considered: The only way to do this currently is to directly use the InfluxDb HTTP API. Its quite awkward to be able to access almost all of the InfluxDb features through the client lib, but have to drop down to using a separate HTTP lib and JSON serialization/deserialization lib for my bespoke type for representing bucket schema.

Use case: Bucket schema seem pretty important for ensuring bucket contents will always fulfill some basic content constraints. An implicit bucket can contain anything, so would require a ton of data validation for even the simplest use-case of bucket content consumption.

bmaso-dw avatar May 17 '23 21:05 bmaso-dw