public class PrototypeMeasurementFilter extends Object implements Predicate<com.netflix.spectator.api.Measurement>
| Modifier and Type | Class and Description |
|---|---|
static class |
PrototypeMeasurementFilter.IncludeExcludePatterns
A collection of Include patterns and Exclude patterns for filtering.
|
static class |
PrototypeMeasurementFilter.MeterFilterPattern
Filters a meter.
|
static class |
PrototypeMeasurementFilter.TagFilterPattern
Filters based on Spectator Id tag names and/or values.
|
static class |
PrototypeMeasurementFilter.ValueFilterPattern
Filters on measurement values.
|
| Constructor and Description |
|---|
PrototypeMeasurementFilter(PrototypeMeasurementFilterSpecification specification)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static PrototypeMeasurementFilter |
loadFromPath(String path)
Factory method building a filter from a specification file.
|
PrototypeMeasurementFilter.IncludeExcludePatterns |
metricToPatterns(String metric)
Find the IncludeExcludePatterns for filtering a given metric.
|
boolean |
test(com.netflix.spectator.api.Measurement measurement)
Implements the MeasurementFilter interface.
|
public PrototypeMeasurementFilter(PrototypeMeasurementFilterSpecification specification)
public boolean test(com.netflix.spectator.api.Measurement measurement)
public PrototypeMeasurementFilter.IncludeExcludePatterns metricToPatterns(String metric)
public static PrototypeMeasurementFilter loadFromPath(String path) throws IOException
IOException