write Measurement
abstract suspend fun <M> writeMeasurement(measurement: M, precision: WritePrecision, bucket: String? = null, org: String? = null)(source)
Write Measurement into InfluxDB.
If any exception occurs during write, this exception is rethrown from this method.
Parameters
measurement
specified Measurement. The measurement is considered as one batch unit.
precision
precision for the unix timestamps within the body line-protocol
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.