Rabbit-R1/switch port/java/sources/io/sentry/metrics/Metric.java
2024-05-21 17:08:36 -04:00

41 lines
938 B
Java

package io.sentry.metrics;
import io.sentry.MeasurementUnit;
import java.util.Map;
/* loaded from: classes3.dex */
public abstract class Metric {
private final String key;
private final Map<String, String> tags;
private final MetricType type;
private final MeasurementUnit unit;
public abstract void add(double d);
public String getKey() {
return this.key;
}
public Map<String, String> getTags() {
return this.tags;
}
public MetricType getType() {
return this.type;
}
public MeasurementUnit getUnit() {
return this.unit;
}
public abstract int getWeight();
public abstract Iterable<?> serialize();
public Metric(MetricType metricType, String str, MeasurementUnit measurementUnit, Map<String, String> map) {
this.type = metricType;
this.key = str;
this.unit = measurementUnit;
this.tags = map;
}
}