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:
  • Field Details

  • Method Details

    • name

      @NotNull @NotNull String name()
    • apiName

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