Class InfluxDbWriteObjectSerializer
- java.lang.Object
-
- com.izettle.metrics.influxdb.utils.InfluxDbWriteObjectSerializer
-
public class InfluxDbWriteObjectSerializer extends Object
-
-
Constructor Summary
Constructors Constructor Description InfluxDbWriteObjectSerializer(String measurementPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGroupedLineProtocolString(InfluxDbWriteObject influxDbWriteObject, String realMeasurement)calculate the line protocol for all Points - grouped with same tags and timestamp.StringgetLineProtocolString(InfluxDbWriteObject influxDbWriteObject)calculate the lineprotocol for all Points.
-
-
-
Constructor Detail
-
InfluxDbWriteObjectSerializer
public InfluxDbWriteObjectSerializer(String measurementPrefix)
-
-
Method Detail
-
getLineProtocolString
public String getLineProtocolString(InfluxDbWriteObject influxDbWriteObject)
calculate the lineprotocol for all Points.- Returns:
- the String with newLines.
-
getGroupedLineProtocolString
public String getGroupedLineProtocolString(InfluxDbWriteObject influxDbWriteObject, String realMeasurement)
calculate the line protocol for all Points - grouped with same tags and timestamp. The realMeasurement is what's going to be common for all measurements on the line.- Returns:
- the String with newLines.
-
-