Uses of Class
io.dropwizard.metrics5.MetricName
-
-
Uses of MetricName in io.dropwizard.metrics5
Methods in io.dropwizard.metrics5 that return MetricName Modifier and Type Method Description MetricNameMetricName. append(MetricName append)Build the MetricName that is this with another path and tags appended to it.static MetricNameMetricName. build(String... parts)Build a new metric name using the specific path components.static MetricNameMetricName. empty()Returns an empty metric name.static MetricNameMetricRegistry. name(Class<?> klass, String... names)Concatenates a class name and elements to form a dotted name, eliding any null values or empty strings.static MetricNameMetricRegistry. name(String name, String... names)Concatenates elements to form a dotted name, eliding any null values or empty strings.MetricNameMetricName. resolve(String... parts)Build the MetricName that is this with another path appended to it.MetricNameMetricName. tagged(String... pairs)Same astagged(Map), but takes a variadic list of arguments.MetricNameMetricName. tagged(Map<String,String> add)Add tags to a metric name and return the newly created MetricName.Methods in io.dropwizard.metrics5 that return types with arguments of type MetricName Modifier and Type Method Description protected ConcurrentMap<MetricName,Metric>MetricRegistry. buildMap()Creates a newConcurrentMapimplementation for use inside the registry.protected ConcurrentMap<MetricName,Metric>NoopMetricRegistry. buildMap()Creates a newConcurrentMapimplementation for use inside the registry.SortedMap<MetricName,Counter>MetricRegistry. getCounters()Returns a map of all the counters in the registry and their names.SortedMap<MetricName,Counter>MetricRegistry. getCounters(MetricFilter filter)Returns a map of all the counters in the registry and their names which match the given filter.SortedMap<MetricName,Counter>NoopMetricRegistry. getCounters()Returns a map of all the counters in the registry and their names.SortedMap<MetricName,Counter>NoopMetricRegistry. getCounters(MetricFilter filter)Returns a map of all the counters in the registry and their names which match the given filter.SortedMap<MetricName,Gauge<?>>MetricRegistry. getGauges()Returns a map of all the gauges in the registry and their names.SortedMap<MetricName,Gauge<?>>MetricRegistry. getGauges(MetricFilter filter)Returns a map of all the gauges in the registry and their names which match the given filter.SortedMap<MetricName,Gauge<?>>NoopMetricRegistry. getGauges()Returns a map of all the gauges in the registry and their names.SortedMap<MetricName,Gauge<?>>NoopMetricRegistry. getGauges(MetricFilter filter)Returns a map of all the gauges in the registry and their names which match the given filter.SortedMap<MetricName,Histogram>MetricRegistry. getHistograms()Returns a map of all the histograms in the registry and their names.SortedMap<MetricName,Histogram>MetricRegistry. getHistograms(MetricFilter filter)Returns a map of all the histograms in the registry and their names which match the given filter.SortedMap<MetricName,Histogram>NoopMetricRegistry. getHistograms()Returns a map of all the histograms in the registry and their names.SortedMap<MetricName,Histogram>NoopMetricRegistry. getHistograms(MetricFilter filter)Returns a map of all the histograms in the registry and their names which match the given filter.SortedMap<MetricName,Meter>MetricRegistry. getMeters()Returns a map of all the meters in the registry and their names.SortedMap<MetricName,Meter>MetricRegistry. getMeters(MetricFilter filter)Returns a map of all the meters in the registry and their names which match the given filter.SortedMap<MetricName,Meter>NoopMetricRegistry. getMeters()Returns a map of all the meters in the registry and their names.SortedMap<MetricName,Meter>NoopMetricRegistry. getMeters(MetricFilter filter)Returns a map of all the meters in the registry and their names which match the given filter.Map<MetricName,Metric>MetricRegistry. getMetrics()Map<MetricName,Metric>MetricSet. getMetrics()A map of metric names to metrics.Map<MetricName,Metric>NoopMetricRegistry. getMetrics()A map of metric names to metrics.SortedSet<MetricName>MetricRegistry. getNames()Returns a set of the names of all the metrics in the registry.SortedSet<MetricName>NoopMetricRegistry. getNames()Returns a set of the names of all the metrics in the registry.SortedMap<MetricName,Timer>MetricRegistry. getTimers()Returns a map of all the timers in the registry and their names.SortedMap<MetricName,Timer>MetricRegistry. getTimers(MetricFilter filter)Returns a map of all the timers in the registry and their names which match the given filter.SortedMap<MetricName,Timer>NoopMetricRegistry. getTimers()Returns a map of all the timers in the registry and their names.SortedMap<MetricName,Timer>NoopMetricRegistry. getTimers(MetricFilter filter)Returns a map of all the timers in the registry and their names which match the given filter.Methods in io.dropwizard.metrics5 with parameters of type MetricName Modifier and Type Method Description MetricNameMetricName. append(MetricName append)Build the MetricName that is this with another path and tags appended to it.intMetricName. compareTo(MetricName o)CounterMetricRegistry. counter(MetricName name)<T extends Counter>
TMetricRegistry. counter(MetricName name, MetricRegistry.MetricSupplier<T> supplier)CounterNoopMetricRegistry. counter(MetricName name)<T extends Counter>
TNoopMetricRegistry. counter(MetricName name, MetricRegistry.MetricSupplier<T> supplier)<T extends Gauge>
TMetricRegistry. gauge(MetricName name)Return theGaugeregistered under this name; or create and register a newSettableGaugeif none is registered.<T extends Gauge>
TMetricRegistry. gauge(MetricName name, MetricRegistry.MetricSupplier<T> supplier)<T extends Gauge>
TNoopMetricRegistry. gauge(MetricName name)Return theGaugeregistered under this name; or create and register a newSettableGaugeif none is registered.<T extends Gauge>
TNoopMetricRegistry. gauge(MetricName name, MetricRegistry.MetricSupplier<T> supplier)HistogramMetricRegistry. histogram(MetricName name)HistogramMetricRegistry. histogram(MetricName name, MetricRegistry.MetricSupplier<Histogram> supplier)HistogramNoopMetricRegistry. histogram(MetricName name)HistogramNoopMetricRegistry. histogram(MetricName name, MetricRegistry.MetricSupplier<Histogram> supplier)booleanMetricFilter. matches(MetricName name, Metric metric)Returnstrueif the metric matches the filter;falseotherwise.MeterMetricRegistry. meter(MetricName name)MeterMetricRegistry. meter(MetricName name, MetricRegistry.MetricSupplier<Meter> supplier)MeterNoopMetricRegistry. meter(MetricName name)MeterNoopMetricRegistry. meter(MetricName name, MetricRegistry.MetricSupplier<Meter> supplier)voidMetricRegistryListener.Base. onCounterAdded(MetricName name, Counter counter)voidMetricRegistryListener. onCounterAdded(MetricName name, Counter counter)Called when aCounteris added to the registry.voidMetricRegistryListener.Base. onCounterRemoved(MetricName name)voidMetricRegistryListener. onCounterRemoved(MetricName name)Called when aCounteris removed from the registry.voidMetricRegistryListener.Base. onGaugeAdded(MetricName name, Gauge<?> gauge)voidMetricRegistryListener. onGaugeAdded(MetricName name, Gauge<?> gauge)Called when aGaugeis added to the registry.voidMetricRegistryListener.Base. onGaugeRemoved(MetricName name)voidMetricRegistryListener. onGaugeRemoved(MetricName name)Called when aGaugeis removed from the registry.voidMetricRegistryListener.Base. onHistogramAdded(MetricName name, Histogram histogram)voidMetricRegistryListener. onHistogramAdded(MetricName name, Histogram histogram)Called when aHistogramis added to the registry.voidMetricRegistryListener.Base. onHistogramRemoved(MetricName name)voidMetricRegistryListener. onHistogramRemoved(MetricName name)Called when aHistogramis removed from the registry.voidMetricRegistryListener.Base. onMeterAdded(MetricName name, Meter meter)voidMetricRegistryListener. onMeterAdded(MetricName name, Meter meter)Called when aMeteris added to the registry.voidMetricRegistryListener.Base. onMeterRemoved(MetricName name)voidMetricRegistryListener. onMeterRemoved(MetricName name)Called when aMeteris removed from the registry.voidMetricRegistryListener.Base. onTimerAdded(MetricName name, Timer timer)voidMetricRegistryListener. onTimerAdded(MetricName name, Timer timer)Called when aTimeris added to the registry.voidMetricRegistryListener.Base. onTimerRemoved(MetricName name)voidMetricRegistryListener. onTimerRemoved(MetricName name)Called when aTimeris removed from the registry.<T extends Metric>
TMetricRegistry. register(MetricName name, T metric)Given aMetric, registers it under the given name.<T extends Metric>
TNoopMetricRegistry. register(MetricName name, T metric)Given aMetric, registers it under the given name.voidMetricRegistry. registerAll(MetricName prefix, MetricSet metrics)voidNoopMetricRegistry. registerAll(MetricName prefix, MetricSet metrics)booleanMetricRegistry. remove(MetricName name)Removes the metric with the given name.booleanNoopMetricRegistry. remove(MetricName name)Removes the metric with the given name.protected StringCsvReporter. sanitize(MetricName name)TimerMetricRegistry. timer(MetricName name)TimerMetricRegistry. timer(MetricName name, MetricRegistry.MetricSupplier<Timer> supplier)TimerNoopMetricRegistry. timer(MetricName name)TimerNoopMetricRegistry. timer(MetricName name, MetricRegistry.MetricSupplier<Timer> supplier)
-