WriteKotlinApi

The Kotlin API to write time-series data into InfluxDB 2.x.

Author

Jakub Bednar (20/04/2021 8:18)

Functions

Link copied to clipboard
abstract suspend fun <M> writeMeasurement(measurement: M, precision: WritePrecision, bucket: String? = null, org: String? = null)

Write Measurement into InfluxDB.

Link copied to clipboard
abstract suspend fun <M> writeMeasurements(measurements: Flow<M>, parameters: WriteParameters)
abstract suspend fun <M> writeMeasurements(measurements: Iterable<M>, precision: WritePrecision, bucket: String? = null, org: String? = null)
abstract suspend fun <M> writeMeasurements(measurements: Flow<M>, precision: WritePrecision, bucket: String? = null, org: String? = null)

Write Measurements into InfluxDB.

Link copied to clipboard
abstract suspend fun writePoint(point: Point, bucket: String? = null, org: String? = null)

Write Data Point into InfluxDB.

Link copied to clipboard
abstract suspend fun writePoints(points: Flow<Point>, parameters: WriteParameters)
abstract suspend fun writePoints(points: Iterable<Point>, bucket: String? = null, org: String? = null)
abstract suspend fun writePoints(points: Flow<Point>, bucket: String? = null, org: String? = null)

Write Data Points into InfluxDB.

Link copied to clipboard
abstract suspend fun writeRecord(record: String, precision: WritePrecision, bucket: String? = null, org: String? = null)

Write Line Protocol record into InfluxDB.

Link copied to clipboard
abstract suspend fun writeRecords(records: Flow<String>, parameters: WriteParameters)
abstract suspend fun writeRecords(records: Iterable<String>, precision: WritePrecision, bucket: String? = null, org: String? = null)
abstract suspend fun writeRecords(records: Flow<String>, precision: WritePrecision, bucket: String? = null, org: String? = null)

Write Line Protocol records into InfluxDB.