public interface Meter
extends java.lang.AutoCloseable
Modifier and Type | Interface and Description |
---|---|
static class |
Meter.Builder
Fluent builder for custom meters.
|
static class |
Meter.Id
A meter is uniquely identified by its combination of name and tags.
|
static class |
Meter.Type
Custom meters may emit metrics like one of these types without implementing
the corresponding interface.
|
Modifier and Type | Method and Description |
---|---|
static Meter.Builder |
builder(java.lang.String name,
Meter.Type type,
java.lang.Iterable<Measurement> measurements) |
default void |
close() |
Meter.Id |
getId() |
java.lang.Iterable<Measurement> |
measure()
Get a set of measurements.
|
static Meter.Builder builder(java.lang.String name, Meter.Type type, java.lang.Iterable<Measurement> measurements)
Meter.Id getId()
java.lang.Iterable<Measurement> measure()
default void close()
close
in interface java.lang.AutoCloseable