@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class MetricsFilter extends Object implements MetricsPlugin
Constructor and Description |
---|
MetricsFilter() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
accepts(Iterable<MetricsTag> tags)
Whether to accept the tags
|
boolean |
accepts(MetricsRecord record)
Whether to accept the record
|
abstract boolean |
accepts(MetricsTag tag)
Whether to accept the tag
|
abstract boolean |
accepts(String name)
Whether to accept the name
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public MetricsFilter()
public abstract boolean accepts(String name)
name
- to filter onpublic abstract boolean accepts(MetricsTag tag)
tag
- to filter onpublic abstract boolean accepts(Iterable<MetricsTag> tags)
tags
- to filter onpublic boolean accepts(MetricsRecord record)
record
- to filter onCopyright © 2016 Apache Software Foundation. All Rights Reserved.