Interface MetricFilter

All Known Implementing Classes:
DefaultMetricFilter

public interface MetricFilter
A filter for metrics.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final MetricFilter
    Filter that accepts every metric.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    filter(org.apache.flink.metrics.Metric metric, String name, String logicalScope)
    Filters a given metric.
  • Field Details

    • NO_OP_FILTER

      static final MetricFilter NO_OP_FILTER
      Filter that accepts every metric.
  • Method Details

    • filter

      boolean filter(org.apache.flink.metrics.Metric metric, String name, String logicalScope)
      Filters a given metric.
      Parameters:
      metric - the metric to filter
      name - the name of the metric
      logicalScope - the logical scope of the metric
      Returns:
      true, if the metric matches, false otherwise