public interface IMetricsContext
Modifier and Type | Method and Description |
---|---|
com.codahale.metrics.Counter |
registerCounter(String name) |
<T> com.codahale.metrics.Gauge<T> |
registerGauge(String name,
com.codahale.metrics.Gauge<T> gauge) |
com.codahale.metrics.Histogram |
registerHistogram(String name) |
com.codahale.metrics.Meter |
registerMeter(String name) |
CombinedMetric |
registerMetric(String name,
ICombiner combiner,
int timeBucketSizeInSecs)
Deprecated.
in favor of metrics v2 (the non-deprecated methods on this class)
|
ReducedMetric |
registerMetric(String name,
IReducer reducer,
int timeBucketSizeInSecs)
Deprecated.
in favor of metrics v2 (the non-deprecated methods on this class)
|
<T extends IMetric> |
registerMetric(String name,
T metric,
int timeBucketSizeInSecs)
Deprecated.
in favor of metrics v2 (the non-deprecated methods on this class)
|
void |
registerMetricSet(String prefix,
com.codahale.metrics.MetricSet set) |
com.codahale.metrics.Timer |
registerTimer(String name) |
@Deprecated <T extends IMetric> T registerMetric(String name, T metric, int timeBucketSizeInSecs)
@Deprecated ReducedMetric registerMetric(String name, IReducer reducer, int timeBucketSizeInSecs)
@Deprecated CombinedMetric registerMetric(String name, ICombiner combiner, int timeBucketSizeInSecs)
com.codahale.metrics.Timer registerTimer(String name)
com.codahale.metrics.Histogram registerHistogram(String name)
com.codahale.metrics.Meter registerMeter(String name)
com.codahale.metrics.Counter registerCounter(String name)
<T> com.codahale.metrics.Gauge<T> registerGauge(String name, com.codahale.metrics.Gauge<T> gauge)
void registerMetricSet(String prefix, com.codahale.metrics.MetricSet set)
Copyright © 2023 The Apache Software Foundation. All rights reserved.