Class InfluxDbSink

All Implemented Interfaces:
Sink

public final class InfluxDbSink extends HttpPostSink
Publishes to a InfluxDB endpoint. This class is thread safe.
Author:
Daniel Guerrero (dguerreromartin at groupon dot com)
  • Method Details

    • createRequest

      protected org.asynchttpclient.Request createRequest(org.asynchttpclient.AsyncHttpClient client, byte[] serializedData)
      Description copied from class: HttpPostSink
      Creates an HTTP request from a serialized data entry. Default is an POST containing serializedData as the body with content type of application/json
      Overrides:
      createRequest in class HttpPostSink
      Parameters:
      client - The http client to build the request with.
      serializedData - The serialized data.
      Returns:
      Request to execute
    • serialize

      protected Collection<com.arpnetworking.tsdcore.sinks.HttpPostSink.SerializedDatum> serialize(PeriodicData periodicData)
      Description copied from class: HttpPostSink
      Serialize the PeriodicData instance for posting.
      Specified by:
      serialize in class HttpPostSink
      Parameters:
      periodicData - The PeriodicData to be serialized.
      Returns:
      The serialized representation of PeriodicData.