- Type Parameters:
KeyType - is a class that stores information about a MetricDatum. This is useful
to compare MetricDatums, aggregate similar MetricDatums or store information about a datum
that may be relevant to the user (i.e. MetricName, CustomerId, TimeStamp, etc).
Example:
Let SampleMetricKey be a KeyType that takes in the time in which the datum was created.
MetricDatumWithKey sampleDatumWithKey = new MetricDatumWithKey(new
SampleMetricKey(System.currentTimeMillis()), datum)
public class MetricDatumWithKey<KeyType>
extends java.lang.Object
This class is used to store a MetricDatum as well as KeyType which stores specific information about
that particular MetricDatum.