Annotation Type MetricsValue


  • @Target(METHOD)
    @Retention(RUNTIME)
    public @interface MetricsValue
    The MetricsValue descriptor annotation adds a metrics.value 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 value with the metrics name being value(). By default, an MBean attribute is not mapped to a metrics value or MetricsTag.

    This annotation is only allowed to be put on MBean attribute type's of numeric primitives or numeric classes deriving from Number. Map non-numerics MBean attribute types to MetricsTag.

    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