Module org.elasticsearch.server
Interface DoubleUpDownCounter
- All Superinterfaces:
Instrument
A counter that supports decreasing and increasing values.
Useful for capturing the number of requests in a queue.
-
Field Summary
Fields -
Method Summary
Methods inherited from interface org.elasticsearch.telemetry.metric.Instrument
getName
-
Field Details
-
NOOP
Noop counter for use in tests
-
-
Method Details
-
add
void add(double inc) Add to the counter- Parameters:
inc
- may be negative.
-
add
Add to the counter- Parameters:
inc
- may be negative.attributes
- key-value pairs to associate with this increment
-