- Enclosing class:
Metrics
The annotated method will be counted.
-
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.NONE.Name of the counter.
-
Element Details
-
value
String valueName of the counter.- Returns:
- counter 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.NONE.- Returns:
- metric unit
- Default:
"none"
-