Package io.getunleash.impactmetrics
Interface MetricsAPI
- All Known Implementing Classes:
MetricsAPIImpl
public interface MetricsAPI
-
Method Summary
Modifier and TypeMethodDescriptionvoiddefineCounter(String name, String help) voiddefineGauge(String name, String help) voiddefineHistogram(String name, String help) voiddefineHistogram(String name, String help, List<Double> buckets) voidincrementCounter(String name) voidincrementCounter(String name, long value) voidincrementCounter(String name, Long value, MetricFlagContext flagContext) Deprecated, for removal: This API element is subject to removal in a future version.MetricFlagContext will be removed in a future release.voidobserveHistogram(String name, double value) voidobserveHistogram(String name, double value, MetricFlagContext flagContext) Deprecated, for removal: This API element is subject to removal in a future version.MetricFlagContext will be removed in a future release.voidupdateGauge(String name, double value) voidupdateGauge(String name, double value, MetricFlagContext flagContext) Deprecated, for removal: This API element is subject to removal in a future version.MetricFlagContext will be removed in a future release.voidupdateGauge(String name, long value) Deprecated, for removal: This API element is subject to removal in a future version.voidupdateGauge(String name, long value, MetricFlagContext flagContext) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
defineCounter
-
defineGauge
-
defineHistogram
-
defineHistogram
-
incrementCounter
-
incrementCounter
-
incrementCounter
@Deprecated(since="12.1.1", forRemoval=true) void incrementCounter(String name, @Nullable Long value, @Nullable MetricFlagContext flagContext) Deprecated, for removal: This API element is subject to removal in a future version.MetricFlagContext will be removed in a future release. -
updateGauge
-
updateGauge
@Deprecated(since="12.1.1", forRemoval=true) void updateGauge(String name, double value, @Nullable MetricFlagContext flagContext) Deprecated, for removal: This API element is subject to removal in a future version.MetricFlagContext will be removed in a future release. -
updateGauge
Deprecated, for removal: This API element is subject to removal in a future version. -
updateGauge
@Deprecated(since="12.1.0", forRemoval=true) void updateGauge(String name, long value, @Nullable MetricFlagContext flagContext) Deprecated, for removal: This API element is subject to removal in a future version. -
observeHistogram
-
observeHistogram
@Deprecated(since="12.1.1", forRemoval=true) void observeHistogram(String name, double value, @Nullable MetricFlagContext flagContext) Deprecated, for removal: This API element is subject to removal in a future version.MetricFlagContext will be removed in a future release.
-