Interface WriteKotlinApi
-
- All Implemented Interfaces:
public interface WriteKotlinApiThe Kotlin API to write time-series data into InfluxDB 2.x.
Jakub Bednar (20/04/2021 8:18)
-
-
Method Summary
Modifier and Type Method Description abstract UnitwriteRecord(String record, WritePrecision precision, String bucket, String org)Write Line Protocol record into InfluxDB. abstract UnitwriteRecords(Iterable<String> records, WritePrecision precision, String bucket, String org)Write Line Protocol records into InfluxDB. abstract UnitwriteRecords(Flow<String> records, WritePrecision precision, String bucket, String org)Write Line Protocol records into InfluxDB. abstract UnitwriteRecords(Flow<String> records, WriteParameters parameters)Write Line Protocol records into InfluxDB. abstract UnitwritePoint(Point point, String bucket, String org)Write Data Point into InfluxDB. abstract UnitwritePoints(Iterable<Point> points, String bucket, String org)Write Data Points into InfluxDB. abstract UnitwritePoints(Flow<Point> points, String bucket, String org)Write Data Points into InfluxDB. abstract UnitwritePoints(Flow<Point> points, WriteParameters parameters)Write Data Points into InfluxDB. abstract <M extends Any> UnitwriteMeasurement(M measurement, WritePrecision precision, String bucket, String org)Write Measurement into InfluxDB. abstract <M extends Any> UnitwriteMeasurements(Iterable<M> measurements, WritePrecision precision, String bucket, String org)Write Measurements into InfluxDB. abstract <M extends Any> UnitwriteMeasurements(Flow<M> measurements, WritePrecision precision, String bucket, String org)Write Measurements into InfluxDB. abstract <M extends Any> UnitwriteMeasurements(Flow<M> measurements, WriteParameters parameters)Write Measurements into InfluxDB. -
-
Method Detail
-
writeRecord
abstract Unit writeRecord(String record, WritePrecision precision, String bucket, String org)
Write Line Protocol record into InfluxDB.
If any exception occurs during write, this exception is rethrown from this method.
- Parameters:
record- specified in LineProtocol.precision- precision for the unix timestamps within the body line-protocolbucket- specifies the destination bucket for writes.org- specifies the destination organization for writes.
-
writeRecords
abstract Unit writeRecords(Iterable<String> records, WritePrecision precision, String bucket, String org)
Write Line Protocol records into InfluxDB.
If any exception occurs during write, this exception is rethrown from this method.
- Parameters:
records- specified in LineProtocol.precision- precision for the unix timestamps within the body line-protocolbucket- specifies the destination bucket for writes.org- specifies the destination organization for writes.
-
writeRecords
abstract Unit writeRecords(Flow<String> records, WritePrecision precision, String bucket, String org)
Write Line Protocol records into InfluxDB.
If any exception occurs during write, this exception is rethrown from this method.
- Parameters:
records- specified in LineProtocol.precision- precision for the unix timestamps within the body line-protocolbucket- specifies the destination bucket for writes.org- specifies the destination organization for writes.
-
writeRecords
abstract Unit writeRecords(Flow<String> records, WriteParameters parameters)
Write Line Protocol records into InfluxDB.
If any exception occurs during write, this exception is rethrown from this method.
- Parameters:
records- specified in LineProtocol.parameters- specify InfluxDB Write endpoint parameters
-
writePoint
abstract Unit writePoint(Point point, String bucket, String org)
Write Data Point into InfluxDB.
If any exception occurs during write, this exception is rethrown from this method.
- Parameters:
point- specified data point.bucket- specifies the destination bucket for writes.org- specifies the destination organization for writes.
-
writePoints
abstract Unit writePoints(Iterable<Point> points, String bucket, String org)
Write Data Points into InfluxDB.
If any exception occurs during write, this exception is rethrown from this method.
- Parameters:
points- specified data points.bucket- specifies the destination bucket for writes.org- specifies the destination organization for writes.
-
writePoints
abstract Unit writePoints(Flow<Point> points, String bucket, String org)
Write Data Points into InfluxDB.
If any exception occurs during write, this exception is rethrown from this method.
- Parameters:
points- specified data points.bucket- specifies the destination bucket for writes.org- specifies the destination organization for writes.
-
writePoints
abstract Unit writePoints(Flow<Point> points, WriteParameters parameters)
Write Data Points into InfluxDB.
If any exception occurs during write, this exception is rethrown from this method.
- Parameters:
points- specified data points.parameters- specify InfluxDB Write endpoint parameters
-
writeMeasurement
abstract <M extends Any> Unit writeMeasurement(M measurement, WritePrecision precision, String bucket, String org)
Write Measurement into InfluxDB.
If any exception occurs during write, this exception is rethrown from this method.
- Parameters:
measurement- specified Measurement.precision- precision for the unix timestamps within the body line-protocolbucket- specifies the destination bucket for writes.org- specifies the destination organization for writes.
-
writeMeasurements
abstract <M extends Any> Unit writeMeasurements(Iterable<M> measurements, WritePrecision precision, String bucket, String org)
Write Measurements into InfluxDB.
If any exception occurs during write, this exception is rethrown from this method.
- Parameters:
measurements- specified Measurements.precision- precision for the unix timestamps within the body line-protocolbucket- specifies the destination bucket for writes.org- specifies the destination organization for writes.
-
writeMeasurements
abstract <M extends Any> Unit writeMeasurements(Flow<M> measurements, WritePrecision precision, String bucket, String org)
Write Measurements into InfluxDB.
If any exception occurs during write, this exception is rethrown from this method.
- Parameters:
measurements- specified Measurements.precision- precision for the unix timestamps within the body line-protocolbucket- specifies the destination bucket for writes.org- specifies the destination organization for writes.
-
writeMeasurements
abstract <M extends Any> Unit writeMeasurements(Flow<M> measurements, WriteParameters parameters)
Write Measurements into InfluxDB.
If any exception occurs during write, this exception is rethrown from this method.
- Parameters:
measurements- specified Measurements.parameters- specify InfluxDB Write endpoint parameters
-
-
-
-