Package com.atlassian.util.profiling
Interface MetricsFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Allows filtering of metrics that will be included or excluded from the published metrics.
- Since:
- 4.1
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MetricsFilterA filter that guarantees the inclusion of all metersstatic final MetricsFilterA filter that guarantees the exclusion of all meters -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic MetricsFilterMetrics with the specified names should NOT be present in published metrics.static MetricsFilterdeny(Collection<String> names) Metrics with the specified names should NOT be present in published metrics.
-
Field Details
-
ACCEPT_ALL
A filter that guarantees the inclusion of all meters -
DENY_ALL
A filter that guarantees the exclusion of all meters
-
-
Method Details
-
deny
Metrics with the specified names should NOT be present in published metrics.- Parameters:
names- When a metric name matches any of the specified values, it will be excluded from the published metrics.- Returns:
- A filter that guarantees the exclusion of meters with any of the specified names.
-
deny
Metrics with the specified names should NOT be present in published metrics.- Parameters:
names- When a metric name matches any of the specified values, it will be excluded from the published metrics.- Returns:
- A filter that guarantees the exclusion of meters with any of the specified names.
-
accepts
- Parameters:
name- metrics name- Returns:
- true if metrics with the given name should be accepted
-