InfluxDBClientKotlin

The reference Kotlin client that allows query and write for the InfluxDB 2.x by Kotlin Channel coroutines.

Author

Jakub Bednar (bednar@github) (07/02/2019 13:11)

Functions

Link copied to clipboard
abstract override fun close()

Shutdown and close the client.

Link copied to clipboard

Disable Gzip compress for http request body.

Link copied to clipboard

Enable Gzip compress for http requests.

Link copied to clipboard
abstract fun getLogLevel(): LogLevel

Gets the LogLevel that is used for logging requests and responses.

Link copied to clipboard

Create a new Query client.

Link copied to clipboard

Create a new Write client.

Link copied to clipboard
abstract fun health(): HealthCheck

Get the health of an instance.

Link copied to clipboard
abstract fun isGzipEnabled(): Boolean

Returns whether Gzip compress for http request body is enabled.

Link copied to clipboard
abstract fun ping(): Boolean

Check the status of InfluxDB Server.

Link copied to clipboard
abstract fun setLogLevel(logLevel: LogLevel): InfluxDBClientKotlin

Sets the log level for the request and response information.

Link copied to clipboard
abstract fun version(): String

Returns the version of the connected InfluxDB Server.