Interface InfluxDbSender

    • Method Detail

      • flush

        void flush()
        Flushes buffer, if applicable.
      • hasSeriesData

        boolean hasSeriesData()
        Returns:
        true if there is data available to send.
      • appendPoints

        void appendPoints​(InfluxDbPoint point)
        Adds this metric point to the buffer.
        Parameters:
        point - metric point with tags and fields
      • writeData

        int writeData()
               throws Exception
        Writes buffer data to InfluxDb.
        Returns:
        the response code for the request sent to InfluxDb.
        Throws:
        Exception - exception while writing to InfluxDb api
      • setTags

        void setTags​(Map<String,​String> tags)
        Set tags applicable for all the points.
        Parameters:
        tags - map containing tags common to all metrics