Class MetricResourceIdentifier

java.lang.Object
io.sentry.metrics.MetricResourceIdentifier

@Internal public final class MetricResourceIdentifier extends Object
Uniquely identifies a metric resource. Used for caching the CodeLocations for a given metric.
  • Constructor Details

    • MetricResourceIdentifier

      public MetricResourceIdentifier(@NotNull @NotNull MetricType metricType, @NotNull @NotNull String key, @Nullable @Nullable MeasurementUnit unit)
  • Method Details

    • getMetricType

      @NotNull public @NotNull MetricType getMetricType()
    • getKey

      @NotNull public @NotNull String getKey()
    • getUnit

      @Nullable public @Nullable MeasurementUnit getUnit()
    • toString

      public String toString()
      Returns a string representation of the metric resource identifier.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(@Nullable @Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object