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 class
MetricsConfigurationDescriptor.FilterDescriptor
static class
MetricsConfigurationDescriptor.InstrumentDescriptor
-
Field Summary
Fields Modifier and Type Field Description protected static String
ALL_METRICS
protected MetricsConfigurationDescriptor.FilterDescriptor
filter
protected List<MetricsConfigurationDescriptor.InstrumentDescriptor>
instruments
protected boolean
isEnabled
-
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 String
expandName(io.dropwizard.metrics5.MetricName metric)
Set<io.dropwizard.metrics5.MetricAttribute>
getDeniedExpansions()
String
getId()
The descriptor id, descriptors with same id are merged.List<MetricsConfigurationDescriptor.InstrumentDescriptor>
getInstruments()
boolean
isEnabled()
boolean
matches(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: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
-
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:
matches
in interfaceio.dropwizard.metrics5.MetricFilter
-
getDeniedExpansions
public Set<io.dropwizard.metrics5.MetricAttribute> getDeniedExpansions()
-
isEnabled
public boolean isEnabled()
-
getInstruments
public List<MetricsConfigurationDescriptor.InstrumentDescriptor> getInstruments()
-
-