Annotation Type Metered


  • @Retention(RUNTIME)
    @Target(METHOD)
    @Documented
    public @interface Metered
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean ignore  
      java.lang.String metricName
      If set, this value will be used as an override to the metric name that would normally be generated automatically.
      java.lang.String[] tags  
    • Element Detail

      • metricName

        java.lang.String metricName
        If set, this value will be used as an override to the metric name that would normally be generated automatically. This is useful when there are metric name collisions.

        In the context of plugins, the plugin ID will always be prefixed to the metric name.

        Returns:
        Optional metric name override
        Default:
        ""
      • ignore

        boolean ignore
        Returns:
        If set to true, the associated method will not be metered.
        Default:
        false
      • tags

        java.lang.String[] tags
        Returns:
        Sequence of alternating key/value tag pairs. Expects key as first element.
        Default:
        {}