mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
41 lines
938 B
Java
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;
|
|
}
|
|
}
|