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 double
count()
The cumulative count since this counter was created.Meter.Id
getId()
Returns A unique combination of name and tags identifying this metric.void
increment(double amount)
Update the counter byamount
.String
toString()
-
-
-
Method Detail
-
getId
public Meter.Id getId()
Description copied from interface:DropwizardTypes.DescribableMetric
Returns A unique combination of name and tags identifying this metric.- Specified by:
getId
in interfaceDropwizardTypes.DescribableMetric
- Specified by:
getId
in interfaceMeter
- Returns:
- A unique combination of name and tags identifying this metric
-
increment
public void increment(double amount)
Description copied from interface:Counter
Update the counter byamount
.
-
count
public double count()
Description copied from interface:Counter
The cumulative count since this counter was created.
-
-