Package com.arpnetworking.tsdcore.sinks
Class KairosDbSink
java.lang.Object
com.arpnetworking.tsdcore.sinks.BaseSink
com.arpnetworking.tsdcore.sinks.HttpPostSink
com.arpnetworking.tsdcore.sinks.KairosDbSink
- All Implemented Interfaces:
Sink
Publishes to a KairosDbSink endpoint. This class is thread safe.
- Author:
- Ville Koskela (ville dot koskela at inscopemetrics dot com)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Implementation of builder pattern forKairosDbSink
. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<com.arpnetworking.tsdcore.sinks.HttpPostSink.SerializedDatum>
serialize
(PeriodicData periodicData) Serialize thePeriodicData
instance for posting.Generate a Steno log compatible representation.Methods inherited from class com.arpnetworking.tsdcore.sinks.HttpPostSink
close, createRequest, createRequests, getAysncHttpClientUri, getMaximumAttempts, getRetryBaseBackoff, getRetryMaximumDelay, getUri, recordAggregateData
Methods inherited from class com.arpnetworking.tsdcore.sinks.BaseSink
getMetricSafeName, getName, toString
-
Method Details
-
toLogValue
Generate a Steno log compatible representation.- Overrides:
toLogValue
in classHttpPostSink
- Returns:
- Steno log compatible representation.
-
serialize
protected Collection<com.arpnetworking.tsdcore.sinks.HttpPostSink.SerializedDatum> serialize(PeriodicData periodicData) Description copied from class:HttpPostSink
Serialize thePeriodicData
instance for posting.- Specified by:
serialize
in classHttpPostSink
- Parameters:
periodicData
- ThePeriodicData
to be serialized.- Returns:
- The serialized representation of
PeriodicData
.
-