Top Description Fields Methods
org.eclipse.microprofile.metrics

public Interface MetricFilter


A filter used to determine whether or not a metric should be reported, among other things.

Field Summary

Modifier and TypeField and Description
public static final MetricFilter
ALL

Matches all metrics, regardless of type or MetricID.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the metric matches the filter
matches
(MetricID
the metric's MetricID
metricID
,
Metric
the metric
metric
)

Returns true if the metric matches the filter; false otherwise.

Field Detail

ALLback to summary
public static final MetricFilter ALL

Matches all metrics, regardless of type or MetricID.

Method Detail

matchesback to summary
public boolean matches(MetricID metricID, Metric metric)

Returns true if the metric matches the filter; false otherwise.

Parameters
metricID:MetricID

the metric's MetricID

metric:Metric

the metric

Returns:boolean

true if the metric matches the filter