Search in sources :

Example 26 with BatchPoints

use of org.influxdb.dto.BatchPoints in project incubator-gobblin by apache.

the class TestInfluxDB method write.

@Override
public void write(String database, String retentionPolicy, Point point) {
    BatchPoints batchPoints = BatchPoints.database(database).retentionPolicy(retentionPolicy).build();
    batchPoints.point(point);
    this.write(batchPoints);
}
Also used : BatchPoints(org.influxdb.dto.BatchPoints)

Aggregations

BatchPoints (org.influxdb.dto.BatchPoints)26 Test (org.junit.Test)12 Point (org.influxdb.dto.Point)11 Map (java.util.Map)6 HashMap (java.util.HashMap)5 TreeMap (java.util.TreeMap)5 InfluxDB (org.influxdb.InfluxDB)5 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)5 Builder (org.influxdb.dto.Point.Builder)3 BgReading (com.eveningoutpost.dexdrip.Models.BgReading)2 Calibration (com.eveningoutpost.dexdrip.Models.Calibration)2 IOException (java.io.IOException)2 ConsistencyLevel (org.influxdb.InfluxDB.ConsistencyLevel)2 ImmutableMap (com.google.common.collect.ImmutableMap)1 Maps.newHashMap (com.google.common.collect.Maps.newHashMap)1 JsonObject (com.google.gson.JsonObject)1 Result (com.googlecode.jmxtrans.model.Result)1 ResultAttribute (com.googlecode.jmxtrans.model.ResultAttribute)1 InterruptedIOException (java.io.InterruptedIOException)1 SocketException (java.net.SocketException)1