@InterceptorBinding @Retention(value=RUNTIME) @Target(value={METHOD,ANNOTATION_TYPE}) public @interface Gauge
Given a method annotated with @Gauge like this:
@Gauge(name = "queueSize")
public int getQueueSize() {
return queue.size;
}
A gauge with the fully qualified class name + queueSize will be created which uses the
annotated method's return value as its value.
Given a field annotated with @Gauge like this:
@Gauge
long value;
A gauge with the fully qualified class name + value will be created which uses the
annotated field value as its value.public abstract String unit
Metadata,
MetricUnitspublic abstract String name
public abstract boolean absolute
true, use the given name as an absolute name. If false (default), use the given name
relative to the annotated class.Copyright © 2017–2018 Eclipse MicroProfile. All rights reserved.