Uses of Enum Class
com.arpnetworking.metrics.mad.model.Unit
Packages that use Unit
Package
Description
-
Uses of Unit in com.arpnetworking.metrics.mad.model
Methods in com.arpnetworking.metrics.mad.model that return UnitModifier and TypeMethodDescriptionabstract Unit
UnitType.getDefaultUnit()
Get the default unit for this unit type.Unit.getSmallerUnit
(Unit otherUnit) Gets the smaller unit of two.Unit.getSmallestUnit()
Gets the smallest unit for this unit's type.static Unit
Returns the enum constant of this class with the specified name.static Unit[]
Unit.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.arpnetworking.metrics.mad.model that return types with arguments of type UnitModifier and TypeMethodDescriptionUnit.getSmallerUnit
(Optional<Unit> unitA, Optional<Unit> unitB) Return the smaller of twoOptional
units or absent if neither is present.DefaultQuantity.getUnit()
Quantity.getUnit()
Methods in com.arpnetworking.metrics.mad.model with parameters of type UnitModifier and TypeMethodDescriptiondouble
Converts a value in one unit to another.Unit.getSmallerUnit
(Unit otherUnit) Gets the smaller unit of two.boolean
Unit.isSmallerThan
(Unit otherUnit) Determines if the current unit is smaller than another.Set the unit.Method parameters in com.arpnetworking.metrics.mad.model with type arguments of type Unit -
Uses of Unit in com.arpnetworking.metrics.mad.model.json
Methods in com.arpnetworking.metrics.mad.model.json that return types with arguments of type UnitModifier and TypeMethodDescriptionVersion2d.Sample.getUnit()
Version2e.Sample.getUnit()
Version2f.Sample.getUnitDenominators()
Version2fSteno.Sample.getUnitDenominators()
Version2f.Sample.getUnitNumerators()
Version2fSteno.Sample.getUnitNumerators()
Methods in com.arpnetworking.metrics.mad.model.json with parameters of type UnitModifier and TypeMethodDescriptionSets the unit field.Sets the unit field.Method parameters in com.arpnetworking.metrics.mad.model.json with type arguments of type UnitModifier and TypeMethodDescriptionVersion2f.Sample.Builder.setUnitDenominators
(List<Unit> value) Sets the unit denominators field.Version2fSteno.Sample.Builder.setUnitDenominators
(List<Unit> value) Sets the unit denominators field.Version2f.Sample.Builder.setUnitNumerators
(List<Unit> value) Sets the unit numerators field.Version2fSteno.Sample.Builder.setUnitNumerators
(List<Unit> value) Sets the unit numerators field. -
Uses of Unit in com.arpnetworking.metrics.mad.model.statistics
Methods in com.arpnetworking.metrics.mad.model.statistics that return types with arguments of type UnitMethods in com.arpnetworking.metrics.mad.model.statistics with parameters of type UnitModifier and TypeMethodDescriptionSets the unit.Transforms the histogram to a new unit.Method parameters in com.arpnetworking.metrics.mad.model.statistics with type arguments of type UnitModifier and TypeMethodDescriptionprotected static void
BaseStatistic.assertUnit
(Optional<Unit> newUnit, Optional<Unit> existingUnit, boolean hasData) Assert that the new unit is compatible with the existing unit. -
Uses of Unit in com.arpnetworking.metrics.proxy.models.messages
Constructor parameters in com.arpnetworking.metrics.proxy.models.messages with type arguments of type UnitModifierConstructorDescriptionMetricReport
(String service, String host, String statistic, String metric, double value, Optional<Unit> unit, ZonedDateTime periodStart) Public constructor.