- #353 Simplify generated code.
- #353 Regenerate code from swagger.
- #355 Upgrade of lib gopkg.in/yaml from v2 to v3
- #354 More efficient synchronization in WriteAPIBlocking.
- #353:
- Interface
Client
has been extended withAPIClient()
function. - The generated client API changed:
- Function names are simplified (was
PostDBRPWithResponse
, nowPostDBRP
) - All functions now accept a context and a single wrapper structure with request body and HTTP parameters
- The functions return deserialized response body or an error (it was a response wrapper with a status code that had to be then validated)
- Function names are simplified (was
- Interface
- #348 Added
write.Options.Consitency
parameter to support InfluxDB Enterprise. - #350 Added support for implicit batching to
WriteAPIBlocking
. It's off by default, enabled byEnableBatching()
.
- #349 Skip retrying on specific write errors (mostly partial write error).
- #350 Interface
WriteAPIBlocking
is extend withEnableBatching()
andFlush()
.
- #341 Changing logging level of messages about discarding batch to Error.
- #344
WriteAPI.Flush()
writes also batches from the retry queue.
- #345 Added makefile for simplifying testing from command line.
- #332 Retry strategy drops expired batches as soon as they expire.
- #335 Retry strategy keeps max retry delay for new batches.
- #323 Added
TasksAPI.CreateTaskByFlux
to allow full control of task script. - #328 Added
Client.SetupWithToken
allowing to specify a custom token.
- #324 Non-empty error channel will not block writes
- #319 Synchronize
WriteAPIImpl.Close
to prevent panic when closing client by multiple go-routines.
- #304 Added public constructor for
QueryTableResult
- #307 Synced generated server API with the latest oss.yml.
- #308 Added Flux query parameters. Supported by InfluxDB Cloud only now.
- #308 Go 1.17 is required
- #297,#298 Optimized
WriteRecord
of WriteAPIBlocking. Custom batch can be written by single argument.
- #294
WritePoint
andWriteRecord
of WriteAPIBlocking returns always full error information. - 300 Closing the response body after write batch.
- 302 FluxRecord.Table() returns value of the table column.
- #285 Added Client.Ping() function as the only validation method available in both OSS and Cloud.
- #286 Synced generated server API with the latest oss.yml.
- #287 Added FluxRecord.Result() function as a convenient way to retrieve the Flux result name of data.
- #285 Functions Client.Health() and Client.Ready() correctly report an error when called against InfluxDB Cloud.
- #285 Function Client.Ready() now returns
*domain.Ready
with full uptime info.
- #276 Synchronized logging methods of log.Logger.
- #264 Synced generated server API with the latest oss.yml.
- #271 Use exponential random retry strategy
- #273 Added
WriteFailedCallback
forWriteAPI
allowing to be synchronously notified about failed writes and decide on further batch processing.
- #269 Synchronized setters of log.Logger to allow concurrent usage
- #270 Fixed duplicate
Content-Type
header in requests to managemet API
- #261 Update Line Protocol document link to v2.0
- #274 Documenting proxy configuration and HTTP redirects handling
- #256 Allowing 'Doer' interface for HTTP requests
- #259 Fixed leaking connection in case of not reading whole query result on TLS connection
- #253 Interface 'Logger' extended with 'LogLevel() uint' getter.
- #241,#248 Synced with InfluxDB 2.0.5 swagger:
- Setup (onboarding) now sends correctly retentionDuration if specified
RetentionRule
used inBucket
now containsShardGroupDurationSeconds
to specify the shard group duration.
- #242 Documentation improvements:
- Custom server API example now shows how to create DBRP mapping
- Improved documentation about concurrency
- #251 Fixed Readme.md formatting
- #252 Fixed panic when getting not present standard Flux columns
- #253 Conditional debug logging of buffers
- #254 Fixed golint pull
- #236 Setting MaxRetries to zero value disables retry strategy.
- #239 Blocking write client doesn't use retry handling.
- #229 Connection errors are also subject for retrying.
- #220 Fixed runtime error occurring when calling v2 API on v1 server.
- #218, #221, #222, Changed links leading to sources to point to API docs in Readme, fixed broken links to InfluxDB docs.
- #206 Adding TasksAPI for managing tasks and associated logs and runs.
- #209 Synchronizing access to the write service in WriteAPIBlocking.
- #193 Added authentication using username and password. See
UsersAPI.SignIn()
andUsersAPI.SignOut()
- #204 Synced with InfluxDB 2 RC0 swagger. Added pagination to Organizations API and
After
paging param to Buckets API.
- #191 Fixed QueryTableResult.Next() failed to parse boolean datatype.
- #192 Client.Close() closes idle connections of internally created HTTP client
- #189 Added clarification that server URL has to be the InfluxDB server base URL to API docs and all examples.
- #196 Changed default server port 9999 to 8086 in docs and examples
- #200 Fix example code in the Readme
- #187 Properly updated library for new major version.
- #173 Removed deprecated API.
- #174 Removed orgs labels API cause it has been removed from the server API
- #175 Removed WriteAPI.Close()
- #165 Allow overriding the http.Client for the http service.
- #179 Unifying retry strategy among InfluxDB 2 clients: added exponential backoff.
- #180 Provided public logger API to enable overriding logging. It is also possible to disable logging.
- #181 Exposed HTTP service to allow custom server API calls. Added example.
- #175 Fixed WriteAPIs management. Keeping single instance for each org and bucket pair.
- #185 DeleteAPI and sample WriteAPIBlocking wrapper for implicit batching
- #156 Fixing Go naming and code style violations:
- Introducing new *API interfaces with proper name of types, methods and arguments.
- This also affects the
Client
interface and theOptions
type. - Affected types and methods have been deprecated and they will be removed in the next release.
- #152 Allow connecting to server on a URL path
- #154 Use idiomatic go style for write channels (internal)
- #155 Fix panic in FindOrganizationByName in case of no permissions
- #131 Labels API
- #136 Possibility to specify default tags
- #138 Fix errors from InfluxDB 1.8 being empty
- #132 Handle unsupported write type as string instead of generating panic
- #134 FluxQueryResult: support reordering of annotations
- #107 Renamed
InfluxDBClient
interface toClient
, so the full nameinfluxdb2.Client
suits better to Go naming conventions - #125
WriteApi
,WriteApiBlocking
,QueryApi
interfaces and related objects likePoint
,FluxTableMetadata
,FluxTableColumn
,FluxRecord
, moved to theapi
( andapi/write
,api/query
) packages to provide consistent interface
- #112 Clarify how to use client with InfluxDB 1.8+
- #115 Doc and examples for reading write api errors
- #100 HTTP request timeout made configurable
- #99 Organizations API and Users API
- #96 Authorization API
- #101 Added examples to API docs
- initial release of new client version
- initial release of new client version