- Enclosing class:
Metrics
The annotated method will be a gauge source.
-
Required Element Summary
Required Elements -
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.Name of the gauge.
-
Element Details
-
value
String valueName of the gauge.- Returns:
- gauge 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 gauge must be provided.- Returns:
- metric unit
-