Package io.getunleash.impactmetrics
Class InMemoryMetricRegistry
java.lang.Object
io.getunleash.impactmetrics.InMemoryMetricRegistry
- All Implemented Interfaces:
ImpactMetricRegistry,ImpactMetricRegistryAndDataSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollect()io.getunleash.impactmetrics.Countercounter(MetricOptions options) io.getunleash.impactmetrics.Gaugegauge(MetricOptions options) io.getunleash.impactmetrics.CountergetCounter(String name) io.getunleash.impactmetrics.Gaugeio.getunleash.impactmetrics.HistogramgetHistogram(String name) io.getunleash.impactmetrics.Histogramhistogram(io.getunleash.impactmetrics.BucketMetricOptions options) voidrestore(List<CollectedMetric> metrics)
-
Constructor Details
-
InMemoryMetricRegistry
public InMemoryMetricRegistry()
-
-
Method Details
-
counter
- Specified by:
counterin interfaceImpactMetricRegistry
-
gauge
- Specified by:
gaugein interfaceImpactMetricRegistry
-
histogram
public io.getunleash.impactmetrics.Histogram histogram(io.getunleash.impactmetrics.BucketMetricOptions options) - Specified by:
histogramin interfaceImpactMetricRegistry
-
getCounter
- Specified by:
getCounterin interfaceImpactMetricRegistry
-
getGauge
- Specified by:
getGaugein interfaceImpactMetricRegistry
-
getHistogram
- Specified by:
getHistogramin interfaceImpactMetricRegistry
-
collect
-
restore
-