Package io.sentry.metrics
Class GaugeMetric
java.lang.Object
io.sentry.metrics.Metric
io.sentry.metrics.GaugeMetric
Gauges track a value that can go up and down.
-
Constructor Summary
ConstructorDescriptionGaugeMetric
(@NotNull String key, double value, @Nullable MeasurementUnit unit, @Nullable Map<String, String> tags) -
Method Summary
-
Constructor Details
-
GaugeMetric
public GaugeMetric(@NotNull @NotNull String key, double value, @Nullable @Nullable MeasurementUnit unit, @Nullable @Nullable Map<String, String> tags)
-
-
Method Details
-
add
public void add(double value) Description copied from class:Metric
Adds a value to the metric -
getLast
public double getLast() -
getMin
public double getMin() -
getMax
public double getMax() -
getSum
public double getSum() -
getCount
public int getCount() -
getWeight
public int getWeight() -
serialize
-