Annotation Type MetricsTag
-
@Target(METHOD) @Retention(RUNTIME) public @interface MetricsTag
The MetricsTag descriptor annotation adds ametrics.tag
field and its value to thedescriptor
for a method on an MBean. The existence of this annotation on an MBean attribute indicates that the MBean attribute is mapped to a metrics tag with the metrics tag name beingvalue()
. By default, an MBean attribute is not mapped to ametrics value
or metrics tag.This annotation is intended to be put on
MBean attribute type's
containing metainfo about all the metrics.values associated with an MBean.- Since:
- 12.2.1.4.0
- Author:
- jf 9.27.2018
-
-
Field Detail
-
DEFAULT
static final String DEFAULT
-
-
-
DESCRIPTOR_KEY
static final String DESCRIPTOR_KEY
-
-
Element Detail
-
value
@DescriptorKey("metrics.tag") String value
Returns the metrics name, expected to be in snake case, for the MBean attribute. If value is_default
, a snake case metric name is generated from theMBean attribute name
.To allow short form assignments of single member annotations, "value" must be used (Java convention).
- Returns:
- a snake case metrics name for MBean attribute or "_default"
- Default:
- "_default"
-
-