Package com.wavefront.agent.handlers
Class InternalProxyWavefrontClient
- java.lang.Object
-
- com.wavefront.agent.handlers.InternalProxyWavefrontClient
-
- All Implemented Interfaces:
com.wavefront.sdk.common.BufferFlusher
,com.wavefront.sdk.common.WavefrontSender
,com.wavefront.sdk.entities.events.WavefrontEventSender
,com.wavefront.sdk.entities.histograms.WavefrontHistogramSender
,com.wavefront.sdk.entities.logs.WavefrontLogSender
,com.wavefront.sdk.entities.metrics.WavefrontMetricSender
,com.wavefront.sdk.entities.tracing.WavefrontTracingSpanSender
,Closeable
,AutoCloseable
public class InternalProxyWavefrontClient extends Object implements com.wavefront.sdk.common.WavefrontSender
-
-
Constructor Summary
Constructors Constructor Description InternalProxyWavefrontClient(ReportableEntityHandlerFactory handlerFactory, String handle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
String
getClientId()
int
getFailureCount()
void
sendDistribution(String name, List<com.wavefront.sdk.common.Pair<Double,Integer>> centroids, Set<com.wavefront.sdk.entities.histograms.HistogramGranularity> histogramGranularities, Long timestamp, String source, Map<String,String> tags)
void
sendEvent(String name, long startMillis, long endMillis, String source, Map<String,String> tags, Map<String,String> annotations)
void
sendFormattedMetric(String s)
void
sendLog(String name, double value, Long timestamp, String source, Map<String,String> tags)
void
sendMetric(String name, double value, Long timestamp, String source, Map<String,String> tags)
void
sendSpan(String name, long startMillis, long durationMillis, String source, UUID traceId, UUID spanId, List<UUID> parents, List<UUID> followsFrom, List<com.wavefront.sdk.common.Pair<String,String>> tags, List<com.wavefront.sdk.entities.tracing.SpanLog> spanLogs)
-
-
-
Constructor Detail
-
InternalProxyWavefrontClient
public InternalProxyWavefrontClient(ReportableEntityHandlerFactory handlerFactory, String handle)
-
-
Method Detail
-
flush
public void flush()
- Specified by:
flush
in interfacecom.wavefront.sdk.common.BufferFlusher
-
getFailureCount
public int getFailureCount()
- Specified by:
getFailureCount
in interfacecom.wavefront.sdk.common.BufferFlusher
-
sendDistribution
public void sendDistribution(String name, List<com.wavefront.sdk.common.Pair<Double,Integer>> centroids, Set<com.wavefront.sdk.entities.histograms.HistogramGranularity> histogramGranularities, Long timestamp, String source, Map<String,String> tags)
- Specified by:
sendDistribution
in interfacecom.wavefront.sdk.entities.histograms.WavefrontHistogramSender
-
sendMetric
public void sendMetric(String name, double value, Long timestamp, String source, Map<String,String> tags)
- Specified by:
sendMetric
in interfacecom.wavefront.sdk.entities.metrics.WavefrontMetricSender
-
sendFormattedMetric
public void sendFormattedMetric(String s)
- Specified by:
sendFormattedMetric
in interfacecom.wavefront.sdk.entities.metrics.WavefrontMetricSender
-
sendSpan
public void sendSpan(String name, long startMillis, long durationMillis, String source, UUID traceId, UUID spanId, List<UUID> parents, List<UUID> followsFrom, List<com.wavefront.sdk.common.Pair<String,String>> tags, @Nullable List<com.wavefront.sdk.entities.tracing.SpanLog> spanLogs)
- Specified by:
sendSpan
in interfacecom.wavefront.sdk.entities.tracing.WavefrontTracingSpanSender
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getClientId
public String getClientId()
- Specified by:
getClientId
in interfacecom.wavefront.sdk.common.WavefrontSender
-
sendEvent
public void sendEvent(String name, long startMillis, long endMillis, String source, Map<String,String> tags, Map<String,String> annotations) throws IOException
- Specified by:
sendEvent
in interfacecom.wavefront.sdk.entities.events.WavefrontEventSender
- Throws:
IOException
-
sendLog
public void sendLog(String name, double value, Long timestamp, String source, Map<String,String> tags) throws IOException
- Specified by:
sendLog
in interfacecom.wavefront.sdk.entities.logs.WavefrontLogSender
- Throws:
IOException
-
-