Package com.couchbase.client.core.cnc
Interface Meter
- All Known Implementing Classes:
LoggingMeter
,NoopMeter
The generic interface for all metric implementations in the client.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new counter.start()
Starts the meter if it hasn't been started, might be a noop depending on the implementation.Stops the metrics if it has been started previously, might be a noop depending on the implementation.valueRecorder
(String name, Map<String, String> tags) Creates a new value recorder.
-
Method Details
-
counter
Creates a new counter.- Parameters:
name
- the name of the counter.tags
- the tags for the counter.- Returns:
- the created counter.
-
valueRecorder
Creates a new value recorder.- Parameters:
name
- the name of the value recorder.tags
- the tags of the value recorder.- Returns:
- the created value recorder.
-
start
Starts the meter if it hasn't been started, might be a noop depending on the implementation. -
stop
Stops the metrics if it has been started previously, might be a noop depending on the implementation.
-