public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
histogramToLineData(String name,
List<Pair<Double,Integer>> centroids,
Set<HistogramGranularity> histogramGranularities,
Long timestamp,
String source,
Map<String,String> tags,
String defaultSource) |
static String |
metricToLineData(String name,
double value,
Long timestamp,
String source,
Map<String,String> tags,
String defaultSource) |
static String |
sanitize(String s) |
static String |
sanitizeValue(String s) |
static String |
sanitizeWithoutQuotes(String s) |
static void |
shutdownExecutorAndWait(ExecutorService tpe) |
static String |
spanLogsToLineData(UUID traceId,
UUID spanId,
List<SpanLog> spanLogs) |
static String |
tracingSpanToLineData(String name,
long startMillis,
long durationMillis,
String source,
UUID traceId,
UUID spanId,
List<UUID> parents,
List<UUID> followsFrom,
List<Pair<String,String>> tags,
List<SpanLog> spanLogs,
String defaultSource) |
public static String metricToLineData(String name, double value, @Nullable Long timestamp, String source, @Nullable Map<String,String> tags, String defaultSource)
public static String histogramToLineData(String name, List<Pair<Double,Integer>> centroids, Set<HistogramGranularity> histogramGranularities, @Nullable Long timestamp, String source, @Nullable Map<String,String> tags, String defaultSource)
public static String tracingSpanToLineData(String name, long startMillis, long durationMillis, String source, UUID traceId, UUID spanId, @Nullable List<UUID> parents, @Nullable List<UUID> followsFrom, @Nullable List<Pair<String,String>> tags, @Nullable List<SpanLog> spanLogs, String defaultSource)
public static String spanLogsToLineData(UUID traceId, UUID spanId, @NonNull List<SpanLog> spanLogs) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static void shutdownExecutorAndWait(ExecutorService tpe)
Copyright © 2020. All rights reserved.