Package io.sentry

Interface MeasurementUnit

All Known Implementing Classes:
MeasurementUnit.Custom, MeasurementUnit.Duration, MeasurementUnit.Fraction, MeasurementUnit.Information

public interface MeasurementUnit
The unit of measurement of a metric value.

Units augment metric values by giving them a magnitude and semantics. There are certain types of units that are subdivided in their precision, such as the MeasurementUnit.Duration for time measurements.

When using the units to custom measurements, Sentry will apply formatting to display measurement values in the UI.

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Custom units without builtin conversion.
    static enum 
    A time duration.
    static enum 
    Fractions such as percentages.
    static enum 
    Size of information derived from bytes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Untyped value.
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NotNull String
    Unit adhering to the API spec.
    @NotNull String
     
  • Field Details

  • Method Details

    • name

      @NotNull @NotNull String name()
    • apiName

      @Internal @NotNull default @NotNull String apiName()
      Unit adhering to the API spec.