Package org.nuxeo.runtime.metrics
Class MetricsConfigurationDescriptor
java.lang.Object
org.nuxeo.runtime.metrics.MetricsConfigurationDescriptor
- All Implemented Interfaces:
io.dropwizard.metrics5.MetricFilter
,Descriptor
public class MetricsConfigurationDescriptor
extends Object
implements Descriptor, io.dropwizard.metrics5.MetricFilter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected boolean
protected static final MetricsConfigurationDescriptor.FilterDescriptor
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
Fields inherited from interface io.dropwizard.metrics5.MetricFilter
ALL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
expandName
(io.dropwizard.metrics5.MetricName metric) Returns the legacy or default filter.Set<io.dropwizard.metrics5.MetricAttribute>
Deprecated, for removal: This API element is subject to removal in a future version.Returns the filter matching the name or null if not found.getId()
The descriptor id, descriptors with same id are merged.boolean
boolean
matches
(io.dropwizard.metrics5.MetricName name, io.dropwizard.metrics5.Metric metric) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove, merge
-
Field Details
-
ALL_METRICS
- See Also:
-
NO_FILTER
-
isEnabled
protected boolean isEnabled -
instruments
-
filters
-
-
Constructor Details
-
MetricsConfigurationDescriptor
public MetricsConfigurationDescriptor()
-
-
Method Details
-
getId
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
getFilter
Returns the filter matching the name or null if not found.- Since:
- 2023.8
-
getDefaultFilter
Returns the legacy or default filter.- Since:
- 2023.8
-
matches
@Deprecated(since="2023.8", forRemoval=true) public boolean matches(io.dropwizard.metrics5.MetricName name, io.dropwizard.metrics5.Metric metric) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
matches
in interfaceio.dropwizard.metrics5.MetricFilter
-
getDeniedExpansions
@Deprecated(since="2023.8", forRemoval=true) public Set<io.dropwizard.metrics5.MetricAttribute> getDeniedExpansions()Deprecated, for removal: This API element is subject to removal in a future version. -
expandName
-
isEnabled
public boolean isEnabled() -
getInstruments
-