Package io.dropwizard.metrics5
Interface MetricFilter
-
public interface MetricFilterA filter used to determine whether or not a metric should be reported, among other things.
-
-
Field Summary
Fields Modifier and Type Field Description static MetricFilterALLMatches all metrics, regardless of type or name.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static MetricFiltercontains(String substring)static MetricFilterendsWith(String suffix)booleanmatches(MetricName name, Metric metric)Returnstrueif the metric matches the filter;falseotherwise.static MetricFilterstartsWith(String prefix)
-
-
-
Field Detail
-
ALL
static final MetricFilter ALL
Matches all metrics, regardless of type or name.
-
-
Method Detail
-
startsWith
static MetricFilter startsWith(String prefix)
-
endsWith
static MetricFilter endsWith(String suffix)
-
contains
static MetricFilter contains(String substring)
-
matches
boolean matches(MetricName name, Metric metric)
Returnstrueif the metric matches the filter;falseotherwise.- Parameters:
name- the metric's namemetric- the metric- Returns:
trueif the metric matches the filter
-
-