@Target(value=METHOD) @Retention(value=RUNTIME) public @interface MetricsTag
metrics.tag
field
and its value to the descriptor
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 being value()
.
By default, an MBean attribute is not mapped to a metrics 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.
public static final String DEFAULT
@DescriptorKey(value="metrics.tag") public abstract String value
_default
, a snake case
metric name is generated from the MBean attribute name
.
To allow short form assignments of single member annotations, "value" must be used (Java convention).