writePoints

abstract suspend fun writePoints(points: Iterable<Point>, bucket: String? = null, org: String? = null)(source)
abstract suspend fun writePoints(points: Flow<Point>, bucket: String? = null, org: String? = null)(source)

Write Data Points into InfluxDB.

If any exception occurs during write, this exception is rethrown from this method.

Parameters

points

specified data points. The points are considered as one batch unit.

bucket

specifies the destination bucket for writes. The com.influxdb.client.InfluxDBClientOptions.getBucket will be used as the destination bucket if the bucket is not specified.

org

specifies the destination organization for writes. The com.influxdb.client.InfluxDBClientOptions.getOrg will be used as the destination organization if the org is not specified.


abstract suspend fun writePoints(points: Flow<Point>, parameters: WriteParameters)(source)

Write Data Points into InfluxDB.

If any exception occurs during write, this exception is rethrown from this method.

Parameters

points

specified data points. The points are considered as one batch unit.

parameters

specify InfluxDB Write endpoint parameters