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 Classes Modifier and Type Class Description static classMetricsConfigurationDescriptor.FilterDescriptorstatic classMetricsConfigurationDescriptor.InstrumentDescriptor
-
Field Summary
Fields Modifier and Type Field Description protected static StringALL_METRICSprotected MetricsConfigurationDescriptor.FilterDescriptorfilterprotected List<MetricsConfigurationDescriptor.InstrumentDescriptor>instrumentsprotected booleanisEnabled-
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
-
Constructor Summary
Constructors Constructor Description MetricsConfigurationDescriptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringexpandName(io.dropwizard.metrics5.MetricName metric)Set<io.dropwizard.metrics5.MetricAttribute>getDeniedExpansions()StringgetId()The descriptor id, descriptors with same id are merged.List<MetricsConfigurationDescriptor.InstrumentDescriptor>getInstruments()booleanisEnabled()booleanmatches(io.dropwizard.metrics5.MetricName name, io.dropwizard.metrics5.Metric metric)-
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 Detail
-
ALL_METRICS
protected static final String ALL_METRICS
- See Also:
- Constant Field Values
-
isEnabled
protected boolean isEnabled
-
instruments
protected List<MetricsConfigurationDescriptor.InstrumentDescriptor> instruments
-
filter
protected MetricsConfigurationDescriptor.FilterDescriptor filter
-
-
Constructor Detail
-
MetricsConfigurationDescriptor
public MetricsConfigurationDescriptor()
-
-
Method Detail
-
getId
public String 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
-
expandName
public static String expandName(io.dropwizard.metrics5.MetricName metric)
-
matches
public boolean matches(io.dropwizard.metrics5.MetricName name, io.dropwizard.metrics5.Metric metric)
- Specified by:
matchesin interfaceio.dropwizard.metrics5.MetricFilter
-
getDeniedExpansions
public Set<io.dropwizard.metrics5.MetricAttribute> getDeniedExpansions()
-
isEnabled
public boolean isEnabled()
-
getInstruments
public List<MetricsConfigurationDescriptor.InstrumentDescriptor> getInstruments()
-
-