Class DefaultMetric
java.lang.Object
com.arpnetworking.metrics.mad.model.DefaultMetric
- All Implemented Interfaces:
Metric
A variable and data to describe the input to a statistic calculator.
- Author:
- Brandon Arp (brandon dot arp at inscopemetrics dot io), Ville Koskela (ville dot koskela at inscopemetrics dot io)
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
com.google.common.collect.ImmutableMap<Statistic,
com.google.common.collect.ImmutableList<CalculatedValue<?>>> Accessor for the collected statistical data.getType()
Accessor for the type of metric.Accessor for the collected sample data.int
hashCode()
Generate a Steno log compatible representation.toString()
-
Method Details
-
getType
Description copied from interface:Metric
Accessor for the type of metric. -
getValues
Description copied from interface:Metric
Accessor for the collected sample data. -
getStatistics
public com.google.common.collect.ImmutableMap<Statistic,com.google.common.collect.ImmutableList<CalculatedValue<?>>> getStatistics()Description copied from interface:Metric
Accessor for the collected statistical data.- Specified by:
getStatistics
in interfaceMetric
- Returns:
- The collected statistical data.
-
equals
-
hashCode
public int hashCode() -
toString
-
toLogValue
Generate a Steno log compatible representation. NOTE: This class is not marked @Loggable due to the potentially large number of samples in the value field. Using @Loggable would cause them all to be serialized and in the past has caused significant performance problems.- Returns:
- Steno log compatible representation.
-