@Stability.Volatile public class AggregatingMeter extends Object implements Meter
Modifier and Type | Method and Description |
---|---|
Counter |
counter(String name,
Map<String,String> tags)
Note that since we are not performing any aggregations on the counter type, this pretty much
is a NOOP for performance reasons.
|
static AggregatingMeter |
create(EventBus eventBus,
AggregatingMeterConfig config) |
Mono<Void> |
start()
Starts the meter if it hasn't been started, might be a noop depending on the implementation.
|
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.
|
public static AggregatingMeter create(EventBus eventBus, AggregatingMeterConfig config)
public Counter counter(String name, Map<String,String> tags)
public ValueRecorder valueRecorder(String name, Map<String,String> tags)
Meter
valueRecorder
in interface Meter
name
- the name of the value recorder.tags
- the tags of the value recorder.public Mono<Void> start()
Meter
Copyright © 2021 Couchbase, Inc.. All rights reserved.