Interface MetricFilter


public interface MetricFilter
A filter used to determine whether or not a metric should be reported, among other things.
  • Field Details

    • ALL

      static final MetricFilter ALL
      Matches all metrics, regardless of type or name.
  • Method Details

    • startsWith

      static MetricFilter startsWith(String prefix)
    • endsWith

      static MetricFilter endsWith(String suffix)
    • contains

      static MetricFilter contains(String substring)
    • matches

      boolean matches(String name, Metric metric)
      Returns true if the metric matches the filter; false otherwise.
      Parameters:
      name - the metric's name
      metric - the metric
      Returns:
      true if the metric matches the filter