MetricSnapshot

data class MetricSnapshot(val sums: Map<MetricKey, Long>, val doubleSums: Map<MetricKey, Double>, val gauges: Map<MetricKey, Double>, val cardinalities: Map<MetricKey, Long>, @IntroducedAt(version = "0.7.4") val histograms: Map<MetricKey, DDSketch> = emptyMap())

A reconstructed snapshot of a device's metric buffer — the CRDTs collapsed to the plain numbers they report.

A histogram reports a distribution rather than one number, so histograms carries the sketch itself: ask it for DDSketch.quantile or DDSketch.count.

sums leaves out, with a WARN naming it the first time, a series whose replicas' counts add up past Long.MAX_VALUE (#3318): the total has no Long to be, and one such series must not stop MetricTapClient.pull or MetricTapClient.tail reporting every other one.

Constructors

Link copied to clipboard
constructor(sums: Map<MetricKey, Long>, doubleSums: Map<MetricKey, Double>, gauges: Map<MetricKey, Double>, cardinalities: Map<MetricKey, Long>, @IntroducedAt(version = "0.7.4") histograms: Map<MetricKey, DDSketch> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard