Annotation Interface Info


@Retention(RUNTIME) @Target(METHOD) public @interface Info
Annotation to provide information about the dimensional information of a metric.
Since:
6.10
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    A series of key, method name pairs that will be used to add additional information to the metric.
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The default key name.
  • Field Details

  • Element Details

    • key

      String key
      Returns:
      the unit of the gauge
      Default:
      "value"
    • additional

      String[] additional
      A series of key, method name pairs that will be used to add additional information to the metric. The method name must be a method on the same class as the annotated method. The value returned must be a String and will be used as the value for the key.
      Returns:
      Default:
      {}