Package com.wavefront.agent.histogram
Class Utils
- java.lang.Object
-
- com.wavefront.agent.histogram.Utils
-
public final class Utils extends Object
Helpers around histograms- Author:
- Tim Schmidt ([email protected]).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Utils.Granularity
Standard supported aggregation Granularities.static class
Utils.HistogramKey
Uniquely identifies a time-series - time-interval pair.static class
Utils.HistogramKeyMarshaller
(For now, a rather trivial) encoding ofUtils.HistogramKey
the form short length and bytes Consider using chronicle-values or making this stateful with a local byte[] / Stringbuffers to be a little more efficient about encodings.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Utils.HistogramKey
makeKey(wavefront.report.ReportPoint point, Utils.Granularity granularity)
static wavefront.report.ReportPoint
pointFromKeyAndDigest(Utils.HistogramKey histogramKey, AgentDigest agentDigest)
-
-
-
Method Detail
-
makeKey
public static Utils.HistogramKey makeKey(wavefront.report.ReportPoint point, Utils.Granularity granularity)
-
pointFromKeyAndDigest
public static wavefront.report.ReportPoint pointFromKeyAndDigest(Utils.HistogramKey histogramKey, AgentDigest agentDigest)
- Parameters:
histogramKey
- the key, defining metric, source, annotations, duration and start-timeagentDigest
- the digest defining the centroids- Returns:
- the corresponding point
-
-