Annotation Interface Metric


@Target(METHOD) @Retention(RUNTIME) public @interface Metric
Annotation used to mark methods that calculate and return metric values. This annotation is used by the additional metrics plugin to identify methods that provide metric data for Jenkins list view columns.

Methods annotated with @Metric should: - Be public - Return a metric value (Duration, Rate, RunWithDuration, etc.) - Accept a Job parameter to calculate metrics for