Class DataDogSink

All Implemented Interfaces:
Sink

public final class DataDogSink extends HttpPostSink
Publishes aggregations to Data Dog. This class is thread safe. API Documentation: http://docs.datadoghq.com/api/
Author:
Ville Koskela (ville dot koskela at inscopemetrics dot com)
  • Method Details

    • toLogValue

      public Object toLogValue()
      Generate a Steno log compatible representation.
      Overrides:
      toLogValue in class HttpPostSink
      Returns:
      Steno log compatible representation.
    • 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.
    • 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