Annotation Interface MetricOptions
Holds metadata about metric options to apply.
- Since:
- 5.6.0
- Author:
- Haiden Rothwell
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionEvaluated expression that can be used to indicate whether the metric should be processed.boolean
Class<? extends AbstractMethodTagger>[]
-
Field Summary
Fields
-
Field Details
-
MEMBER_TAGGERS
Constant value to relate to annotation's tagger values.- See Also:
-
MEMBER_FILTER_TAGGERS
Constant value to relate to annotation's filterTaggers value.- See Also:
-
MEMBER_CONDITION
Constant value to relate to annotation's condition value.- See Also:
-
-
Element Details
-
taggers
Class<? extends AbstractMethodTagger>[] taggers- Returns:
- array of
AbstractMethodTagger
to apply to metrics for method. Only utilized for filtering iffilterTaggers()
is true
- Default:
- {}
-
filterTaggers
boolean filterTaggers- Returns:
- whether to filter taggers using
taggers()
array
- Default:
- false
-
condition
String conditionEvaluated expression that can be used to indicate whether the metric should be processed. Will be evaluated each time the method is called, and if the condition evaluates to false the metric will not be published. Evaluated usingMetricOptionsUtil
- Returns:
- The condition
- Since:
- 5.10.0
- See Also:
- Default:
- ""
-