Class DefaultGaugeService
- java.lang.Object
- org.springframework.boot.actuate.metrics.writer.DefaultGaugeService
- All Implemented Interfaces:
GaugeService
public class DefaultGaugeService extends Object implements GaugeService
Default implementation ofGaugeService
.
Constructor Summary
Constructors Constructor Description DefaultGaugeService(MetricWriter writer)
Create aDefaultGaugeService
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
submit(String metricName, double value)
Set the specified gauge value.
Constructor Detail
DefaultGaugeService
public DefaultGaugeService(MetricWriter writer)
Create aDefaultGaugeService
instance.- Parameters:
writer
- the underlying writer used to manage metrics
Method Detail
submit
public void submit(String metricName, double value)
Description copied from interface:GaugeService
Set the specified gauge value.- Specified by:
submit
in interfaceGaugeService
- Parameters:
metricName
- the name of the gauge to setvalue
- the value of the gauge