mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
34 lines
848 B
Java
34 lines
848 B
Java
package io.sentry.metrics;
|
|
|
|
import io.sentry.MeasurementUnit;
|
|
import java.util.Collections;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class CounterMetric extends Metric {
|
|
private double value;
|
|
|
|
@Override // io.sentry.metrics.Metric
|
|
public void add(double d) {
|
|
this.value += d;
|
|
}
|
|
|
|
public double getValue() {
|
|
return this.value;
|
|
}
|
|
|
|
@Override // io.sentry.metrics.Metric
|
|
public int getWeight() {
|
|
return 1;
|
|
}
|
|
|
|
public CounterMetric(String str, double d, MeasurementUnit measurementUnit, Map<String, String> map) {
|
|
super(MetricType.Counter, str, measurementUnit, map);
|
|
this.value = d;
|
|
}
|
|
|
|
@Override // io.sentry.metrics.Metric
|
|
public Iterable<?> serialize() {
|
|
return Collections.singletonList(Double.valueOf(this.value));
|
|
}
|
|
}
|