com.yammer.metrics.core
Interface MetricPredicate
public interface MetricPredicate
A MetricPredicate
is used to determine whether a metric should be included when sorting
and filtering metrics. This is especially useful for limited metric reporting.
ALL
static final MetricPredicate ALL
- A predicate which matches all inputs.
matches
boolean matches(MetricName name,
Metric metric)
- Returns
true
if the metric matches the predicate.
- Parameters:
name
- the name of the metricmetric
- the metric itself
- Returns:
true
if the predicate applies, false
otherwise
Copyright © 2012. All Rights Reserved.