Rabbit-R1/switch port/java/sources/io/sentry/metrics/Metric.java

42 lines
938 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
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;
}
}