Class InfluxDbWriteObjectSerializer


  • public class InfluxDbWriteObjectSerializer
    extends Object
    • 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.