- Enclosing class:
Metrics
The annotated method will be timed.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether the defined name invalue()is an absolute name, or relative to the class containing the annotated element.Description of the metric.Scope of the metric, defaults toMeter.Scope.APPLICATION.Additional tags of the metric.Unit of the metric, defaults toMeter.BaseUnits.NANOSECONDS.Name of the timer.
-
Element Details
-
value
String valueName of the timer.- Returns:
- timer name
- Default:
""
-
scope
String scopeScope of the metric, defaults toMeter.Scope.APPLICATION.- Returns:
- metric scope
- Default:
"application"
-
description
String descriptionDescription of the metric.- Returns:
- metric description
- Default:
""
-
tags
Metrics.Tag[] tagsAdditional tags of the metric.- Returns:
- metric tags
- Default:
{}
-
absoluteName
boolean absoluteNameWhether the defined name invalue()is an absolute name, or relative to the class containing the annotated element.- Returns:
trueif the name is absolute,falseotherwise.
- Default:
false
-
unit
String unitUnit of the metric, defaults toMeter.BaseUnits.NANOSECONDS.- Returns:
- metric unit
- Default:
"nanoseconds"
-