@Stability.Volatile public interface Meter
Modifier and Type | Method and Description |
---|---|
Counter |
counter(String name,
Map<String,String> tags)
Creates a new counter.
|
default Mono<Void> |
start()
Starts the meter if it hasn't been started, might be a noop depending on the implementation.
|
default Mono<Void> |
stop(Duration timeout)
Stops the metrics if it has been started previously, might be a noop depending on the implementation.
|
ValueRecorder |
valueRecorder(String name,
Map<String,String> tags)
Creates a new value recorder.
|
Counter counter(String name, Map<String,String> tags)
name
- the name of the counter.tags
- the tags for the counter.ValueRecorder valueRecorder(String name, Map<String,String> tags)
name
- the name of the value recorder.tags
- the tags of the value recorder.default Mono<Void> start()
Copyright © 2024 Couchbase, Inc.. All rights reserved.