类 DropwizardMetricServices
- java.lang.Object
- org.springframework.boot.actuate.metrics.dropwizard.DropwizardMetricServices
- 所有已实现的接口:
CounterService
,GaugeService
public class DropwizardMetricServices extends Object implements CounterService, GaugeService
AGaugeService
andCounterService
that sends data to a DropwizardMetricRegistry
based on a naming convention.- Updates to
increment(String)
with names in "meter.*" are treated asMeter
events - Other deltas are treated as simple
Counter
values - Inputs to
submit(String, double)
with names in "histogram.*" are treated asHistogram
updates - Inputs to
submit(String, double)
with names in "timer.*" are treated asTimer
updates - Other metrics are treated as simple
Gauge
values (single valued measurements of type double)
构造器概要
构造器 构造器 说明 DropwizardMetricServices(com.codahale.metrics.MetricRegistry registry)
Create a newDropwizardMetricServices
instance.DropwizardMetricServices(com.codahale.metrics.MetricRegistry registry, ReservoirFactory reservoirFactory)
Create a newDropwizardMetricServices
instance.
构造器详细资料
DropwizardMetricServices
public DropwizardMetricServices(com.codahale.metrics.MetricRegistry registry)
Create a newDropwizardMetricServices
instance.- 参数:
registry
- the underlying metric registry
DropwizardMetricServices
public DropwizardMetricServices(com.codahale.metrics.MetricRegistry registry, ReservoirFactory reservoirFactory)
Create a newDropwizardMetricServices
instance.- 参数:
registry
- the underlying metric registryreservoirFactory
- the factory that instantiates theReservoir
that will be used on Timers and Histograms
方法详细资料
increment
public void increment(String name)
从接口复制的说明:CounterService
Increment the specified counter by 1.- 指定者:
increment
在接口中CounterService
- 参数:
name
- the name of the counter
decrement
public void decrement(String name)
从接口复制的说明:CounterService
Decrement the specified counter by 1.- 指定者:
decrement
在接口中CounterService
- 参数:
name
- the name of the counter
submit
public void submit(String name, double value)
从接口复制的说明:GaugeService
Set the specified gauge value.- 指定者:
submit
在接口中GaugeService
- 参数:
name
- the name of the gauge to setvalue
- the value of the gauge
reset
public void reset(String name)
从接口复制的说明:CounterService
Reset the specified counter.- 指定者:
reset
在接口中CounterService
- 参数:
name
- the name of the counter