Annotation Interface Metrics.Timed

Enclosing class:
Metrics

@Retention(CLASS) @Target(METHOD) @Documented @Intercepted public static @interface Metrics.Timed
The annotated method will be timed.
  • Element Details

    • value

      String value
      Name of the timer.
      Returns:
      timer name
      Default:
      ""
    • scope

      String scope
      Scope of the metric, defaults to Meter.Scope.APPLICATION.
      Returns:
      metric scope
      Default:
      "application"
    • description

      String description
      Description of the metric.
      Returns:
      metric description
      Default:
      ""
    • tags

      Metrics.Tag[] tags
      Additional tags of the metric.
      Returns:
      metric tags
      Default:
      {}
    • absoluteName

      boolean absoluteName
      Whether the defined name in value() is an absolute name, or relative to the class containing the annotated element.
      Returns:
      true if the name is absolute, false otherwise.
      Default:
      false
    • unit

      String unit
      Unit of the metric, defaults to Meter.BaseUnits.NANOSECONDS.
      Returns:
      metric unit
      Default:
      "nanoseconds"