Package com.codahale.metrics
Interface MetricFilter
public interface MetricFilter
A filter used to determine whether or not a metric should be reported, among other things.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MetricFilterMatches all metrics, regardless of type or name. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricFilterstatic MetricFilterbooleanReturnstrueif the metric matches the filter;falseotherwise.static MetricFilterstartsWith(String prefix)
-
Field Details
-
ALL
Matches all metrics, regardless of type or name.
-
-
Method Details
-
startsWith
-
endsWith
-
contains
-
matches
Returnstrueif the metric matches the filter;falseotherwise.- Parameters:
name- the metric's namemetric- the metric- Returns:
trueif the metric matches the filter
-