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 tags; private final MetricType type; private final MeasurementUnit unit; public abstract void add(double d); public String getKey() { return this.key; } public Map 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 map) { this.type = metricType; this.key = str; this.unit = measurementUnit; this.tags = map; } }