Class DropwizardTypes.DescribableMeter
- java.lang.Object
-
- com.codahale.metrics.Meter
-
- org.forgerock.monitoring.dropwizard.DropwizardTypes.DescribableMeter
-
- All Implemented Interfaces:
com.codahale.metrics.Counting,com.codahale.metrics.Metered,com.codahale.metrics.Metric,DistributionSummary,Meter,DropwizardTypes.DescribableMetric
- Enclosing class:
- DropwizardTypes
public static final class DropwizardTypes.DescribableMeter extends com.codahale.metrics.Meter implements DropwizardTypes.DescribableMetric, DistributionSummary
A describable meter, implementing both the dropwizard's meter and the monitoring-api's relevant APIs.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.forgerock.monitoring.api.instrument.DistributionSummary
DistributionSummary.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 longcount()The number of times that record has been called since this timer was created.Meter.IdgetId()Returns A unique combination of name and tags identifying this metric.doublehistogramCountAtValue(long value)doublemax()The maximum time of a single event.doublepercentile(double percentile)The value at a specific percentile.voidrecord(double amount)Updates the statistics kept by the summary with the specified amount.HistogramSnapshottakeSnapshot(boolean supportsAggregablePercentiles)StringtoString()doubletotalAmount()The total amount of all recorded events since this summary was created.-
Methods inherited from class com.codahale.metrics.Meter
getCount, getFifteenMinuteRate, getFiveMinuteRate, getMeanRate, getOneMinuteRate, mark, mark
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.forgerock.monitoring.api.instrument.DistributionSummary
mean, measure, record
-
-
-
-
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
-
record
public void record(double amount)
Description copied from interface:DistributionSummaryUpdates the statistics kept by the summary with the specified amount.- Specified by:
recordin interfaceDistributionSummary- Parameters:
amount- Amount for an event being measured. For example, if the size in bytes of responses from a server. If the amount is less than 0 the value will be dropped.
-
count
public long count()
Description copied from interface:DistributionSummaryThe number of times that record has been called since this timer was created.- Specified by:
countin interfaceDistributionSummary
-
totalAmount
public double totalAmount()
Description copied from interface:DistributionSummaryThe total amount of all recorded events since this summary was created.- Specified by:
totalAmountin interfaceDistributionSummary
-
max
public double max()
Description copied from interface:DistributionSummaryThe maximum time of a single event.- Specified by:
maxin interfaceDistributionSummary
-
percentile
public double percentile(double percentile)
Description copied from interface:DistributionSummaryThe value at a specific percentile. This value is non-aggregable across dimensions.- Specified by:
percentilein interfaceDistributionSummary
-
histogramCountAtValue
public double histogramCountAtValue(long value)
- Specified by:
histogramCountAtValuein interfaceDistributionSummary
-
takeSnapshot
public HistogramSnapshot takeSnapshot(boolean supportsAggregablePercentiles)
- Specified by:
takeSnapshotin interfaceDistributionSummary
-
-