Releases: influxdata/influxdb-client-java
Release list
6.1.0
6.0.0
Migration Notice
RxJava to support write with batching, retry and backpressure.
The underlying outdated RxJava2 library was upgraded to the latest RxJava3.
Changes in public API
WriteServiceimports:io.reactivex.Singleis refactored toio.reactivex.rxjava3.core.Single
WriteOptionsimports:io.reactivex.BackpressureOverflowStrategy->io.reactivex.rxjava3.core.BackpressureOverflowStrategyio.reactivex.Scheduler->io.reactivex.rxjava3.core.Schedulerio.reactivex.schedulers.Schedulers->io.reactivex.rxjava3.schedulers.Schedulers
InfluxDBClientReactive:Single<HealthCheck> health()->Publisher<HealthCheck> health()
WriteOptionsReactiveio.reactivex.Scheduler->io.reactivex.rxjava3.core.Schedulerio.reactivex.schedulers.Schedulers->io.reactivex.rxjava3.schedulers.Schedulers
TelegrafsServiceandTelegrafsApiTelegrafRequestrenamed toTelegrafPluginRequestto create/updateTelegrafconfigurationTelegrafPlugin.TypeEnum.INPUTSrenamed toTelegrafPlugin.TypeEnum.INPUTTelegrafPlugin.TypeEnum.OUTPUTSrenamed toTelegrafPlugin.TypeEnum.OUTPUT
Services
This release also uses new version of InfluxDB OSS API definitions - oss.yml. The following breaking changes are in underlying API services and doesn't affect common apis such as - WriteApi, QueryApi, BucketsApi, OrganizationsApi...
- Add
ConfigServiceto retrieve InfluxDB's runtime configuration - Add
DebugServiceto retrieve debug and performance data from runtime - Add
RemoteConnectionsServiceto deal with registered remote InfluxDB connections - Add
MetricsServiceto deal with exposed prometheus metrics - Add
ReplicationServiceto manage InfluxDB replications - Update
TemplatesServiceto deal withStackandTemplateAPI - Update
RestoreServiceto deal with new restore functions of InfluxDB
List of updated dependencies:
- Core:
- com.squareup.okhttp3:okhttp:jar:4.9.3
- com.squareup.okio:okio:jar:2.10.0
- com.google.code.gson:gson:jar:2.9.0
- io.reactivex.rxjava3:rxjava:jar:3.1.4
- org.apache.commons:commons-csv:jar 1.9.0
- io.gsonfire:gson-fire:1.8.5
- Kotlin
- org.jetbrains.kotlin:kotlin-stdlib:1.6.20
- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.4.3
- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0
- Karaf
- karaf 4.3.6
- gson-fire 1.8.5
- Micrometer
- micrometer 1.8.4
- OSGi
- org.osgi:osgi.core:8.0.0
- Spring integration
- org.springframework.boot:spring-boot:jar:2.6.6
- org.springframework:spring-core:jar:5.3.17
Features
-
#324 Removed dependency on
io.swagger:swagger-annotationsand updated swagger to the latest version -
#289: Upgrade
RxJava2->RxJava3, update outdated dependencies -
#316: Add
InvocableScriptsApito create, update, list, delete and invoke scripts by seamless way -
#315: Add support for timezones [FluxDSL]
-
#317: Gets HTTP headers from the unsuccessful HTTP request
-
#334: Supports not operator [FluxDSL]
-
#335: URL to connect to the InfluxDB is always evaluate as a connection string
-
#329: Add support for write
consistencyparameter [InfluxDB Enterprise]Configure
consistencyviaWrite API:- writeApi.writeRecord(WritePrecision.NS, "cpu_load_short,host=server02 value=0.67"); + WriteParameters parameters = new WriteParameters(WritePrecision.NS, WriteConsistency.ALL); + + writeApi.writeRecord("cpu_load_short,host=server02 value=0.67", parameters);
Configure
consistencyvia client options:- InfluxDBClient client = InfluxDBClientFactory.createV1("http://influxdb_enterpriser:8086", - "my-username", - "my-password".toCharArray(), - "my-db", - "autogen"); + InfluxDBClient client = InfluxDBClientFactory.createV1("http://influxdb_enterpriser:8086", + "my-username", + "my-password".toCharArray(), + "my-db", + "autogen", + WriteConsistency.ALL);
Bug Fixes
- #313: Do not deliver
exceptionwhen the consumer is already disposed [influxdb-client-reactive]
5.0.0
Breaking Changes
- Change type of
PermissionResource.typetoString. You are able to easily migrate by:- resource.setType(PermissionResource.TypeEnum.BUCKETS); + resource.setType(PermissionResource.TYPE_BUCKETS);
Bug Fixes
- #303: Change
PermissionResource.typetoString
4.3.0
4.2.0
4.1.0
4.0.0
Breaking Changes
The Arguments helper moved from package com.influxdb to package com.influxdb.utils.
Management API
This release uses the latest InfluxDB OSS API definitions - oss.yml. The following breaking changes are in underlying API services and doesn't affect common apis such as - WriteApi, QueryApi, BucketsApi, OrganizationsApi...
- Add
LegacyAuthorizationsServiceto deal with legacy authorizations - Add
ResourceServiceto retrieve all knows resources - Move
postSigninoperation fromDefaultServicetoSigninService - Move
postSignoutoperation fromDefaultServicetoSignoutService - Remove
TemplateApiin favour of InfluxDB Community Templates. For more info see - influxdb#19300, openapi#192
Deprecates
InfluxDBClient.health(): instead useInfluxDBClient.ping()InfluxDBClientKotlin.health(): instead useInfluxDBClientKotlin.ping()InfluxDBClientScala.health(): instead useInfluxDBClientScala.ping()SecretsService.postOrgsIDSecrets(): instead useSecretsService.deleteOrgsIDSecretsID()
Features
- #272: Add
PingServiceto check status of OSS and Cloud instance - #278: Add query method with all params for BucketsApi, OrganizationApi and TasksApi
- #280: Use async HTTP calls in the Batching writer
- #251: Client uses
Reactive Streamsin public API,WriteReactiveApiis coldPublisher[influxdb-client-reactive]
Bug Fixes
- #279: Session authentication for InfluxDB
2.1 - #276:
influxdb-client-utilsuses different package theninfluxdb-client-core[java module system]
API
- #281: Update to the latest InfluxDB OSS API
CI
- #275: Deploy
influxdb-client-testpackage into Maven repository