glean / mozilla.telemetry.glean.private / DistributionData

DistributionData

data class DistributionData

This class represents the structure of a distribution according to the pipeline schema. It is meant to help serialize and deserialize data to the correct format for transport and storage, as well as including a helper function to calculate the bucket sizes.

Parameters

values - a map containing the bucket index mapped to the accumulated count

sum - the accumulated sum of all the samples in the distribution

Constructors

<init>

DistributionData(values: MutableMap<Long, Long>, sum: Long)

This class represents the structure of a distribution according to the pipeline schema. It is meant to help serialize and deserialize data to the correct format for transport and storage, as well as including a helper function to calculate the bucket sizes.

Properties

count

val count: Long

The total count of accumulated values.

sum

var sum: Long

the accumulated sum of all the samples in the distribution

values

val values: MutableMap<Long, Long>

a map containing the bucket index mapped to the accumulated count