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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected booleanprotected static final MetricsConfigurationDescriptor.FilterDescriptorFields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_IDFields inherited from interface io.dropwizard.metrics5.MetricFilter
ALL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringexpandName(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.booleanbooleanmatches(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, waitMethods 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:DescriptorThe 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:
getIdin 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:
matchesin 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
-