Class DropwizardTypes.DescribableCounter
- java.lang.Object
-
- com.codahale.metrics.Counter
-
- org.forgerock.monitoring.dropwizard.DropwizardTypes.DescribableCounter
-
- All Implemented Interfaces:
com.codahale.metrics.Counting,com.codahale.metrics.Metric,Counter,Meter,DropwizardTypes.DescribableMetric
- Enclosing class:
- DropwizardTypes
public static final class DropwizardTypes.DescribableCounter extends com.codahale.metrics.Counter implements DropwizardTypes.DescribableMetric, Counter
A describable counter, implementing both the dropwizard's and the monitoring-api's relevant APIs.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.forgerock.monitoring.api.instrument.Counter
Counter.Builder
-
Nested classes/interfaces inherited from interface org.forgerock.monitoring.api.instrument.Meter
Meter.Id, Meter.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecount()The cumulative count since this counter was created.Meter.IdgetId()Returns A unique combination of name and tags identifying this metric.voidincrement(double amount)Update the counter byamount.StringtoString()
-
-
-
Method Detail
-
getId
public Meter.Id getId()
Description copied from interface:DropwizardTypes.DescribableMetricReturns A unique combination of name and tags identifying this metric.- Specified by:
getIdin interfaceDropwizardTypes.DescribableMetric- Specified by:
getIdin interfaceMeter- Returns:
- A unique combination of name and tags identifying this metric
-
increment
public void increment(double amount)
Description copied from interface:CounterUpdate the counter byamount.
-
count
public double count()
Description copied from interface:CounterThe cumulative count since this counter was created.
-
-