7.2.0
Features
- #745: New example
WriteHttpExceptionHandled.javashowing how to make use ofInfluxException.headers()when HTTP Errors are returned from server. Also, now writes selected headers to client log. - #719:
InfluxQLQueryServiceheader changes.Acceptheader can now be defined when makingInfluxQLQuerycalls. Supoorted MIME types:application/csvapplication/json
- The value
application/csvremains the default. ⚠️ Side effects of these changes:- When using
application/json, timestamp fields are returned in the RFC3339 format unlessInfluxQLQuery.setPrecision()has been previously called, in which case they are returned in the POSIX epoch format. - When using
application/csv, timestamp fields are returned in the POSIX epoch format.
- When using
- Convenience methods have been added to
InfluxQLQueryAPIto simplify expressly specifying JSON or CSV calls. - Epoch timestamps can also be ensured by calling
InfluxQLQuery.setPrecision()before executing a query call. - An
AcceptHeaderfield has also been added to theInfluxQLQueryclass and can be set withInfluxQLQuery.setAcceptHeader(). - More information from the server side:
- See the updated InfluxQLExample
Bug Fixes
- #744 following an
InfluxQLQueryAPI.query()call, empty results from the server no longer result in anullresult value.
Dependencies
Update dependencies:
Build:
- #753:
spring-bootto3.3.2 - #726:
kotlinto2.0.0 - #752:
micrometer-registry-influxto1.13.2 - #749:
kotlin-coroutinesto1.8.1 - #735:
scala-collection-compat_2.12to2.12.0 - #740:
pekkoto1.0.3 - #741:
commons-csvto1.11.0 - #743:
gsonto2.11.0
Maven:
- #721:
build-helper-maven-pluginto3.6.0 - #728:
maven-source-pluginto3.3.1 - #729:
maven-enforcer-pluginto3.5.0 - #730:
scala-maven-pluginto4.9.1 - #734:
maven-compiler-pluginto3.13.0 - #736:
jacoco-maven-pluginto0.8.12 - #748:
maven-surefire-plugin,maven-failsafe-pluginto3.3.1 - #746:
maven-jar-pluginto3.4.2 - #747:
maven-project-info-reports-pluginto3.6.2 - #751:
license-maven-pluginto4.5
Test:
- #724:
assertjto3.26.0 - #725:
assertk-jvmto0.28.1 - #750:
assertj-coreto3.26.3 - #737:
junit-jupiterto5.10.3 - #754:
hamcrestto3.0