Package com.codahale.metrics.annotation
Annotation Interface Gauge
An annotation for marking a method of an annotated object as a gauge.
Given a method like this:
@Gauge(name = "queueSize")
public int getQueueSize() {
return queue.size;
}
A gauge for the defining class with the name queueSize
will be created which uses the
annotated method's return value as its value.-
Optional Element Summary
Optional Elements
-
Element Details
-
name
String nameThe gauge's name.- Default:
""
-
absolute
boolean absoluteIftrue
, use the given name as an absolute name. Iffalse
, use the given name relative to the annotated class.- Default:
false
-