Interface Meter
- All Known Subinterfaces:
Counter
,DistributionSummary
,Gauge
,TimeGauge
,Timer
- All Known Implementing Classes:
DropwizardTypes.DescribableCounter
,DropwizardTypes.DescribableGauge
,DropwizardTypes.DescribableHistogram
,DropwizardTypes.DescribableMeter
,DropwizardTypes.DescribableTimer
public interface Meter
A counter, gauge, timer, or distribution summary that results collects one or more metrics.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent builder for custom meters.static class
A meter is uniquely identified by its combination of name and tags.static enum
Custom meters may emit metrics like one of these types without implementing the corresponding interface. -
Method Summary
Modifier and TypeMethodDescriptionstatic Meter.Builder
builder
(String name, Meter.Type type, Iterable<Measurement> measurements) getId()
measure()
Get a set of measurements.
-
Method Details
-
builder
-
getId
Meter.Id getId()- Returns:
- A unique combination of name and tags
-
measure
Iterable<Measurement> measure()Get a set of measurements. Should always return the same number of measurements and in the same order, regardless of the level of activity or the lack thereof.- Returns:
- The set of measurements that represents the instantaneous value of this meter.
-