Package com.codahale.metrics.annotation
Annotation Type Gauge
-
@Retention(RUNTIME) @Target({METHOD,FIELD}) public @interface Gauge
An annotation for marking a method of an annotated object as a gauge. Given a method like this:
A gauge for the defining class with the name@Gauge(name = "queueSize") public int getQueueSize() { return queue.size; }
queueSize
will be created which uses the annotated method's return value as its value.