Class StatsdPropertiesConfigAdapter
- java.lang.Object
- org.springframework.boot.actuate.autoconfigure.metrics.export.properties.PropertiesConfigAdapter<StatsdProperties>
- org.springframework.boot.actuate.autoconfigure.metrics.export.statsd.StatsdPropertiesConfigAdapter
- All Implemented Interfaces:
io.micrometer.core.instrument.config.MeterRegistryConfig
,io.micrometer.statsd.StatsdConfig
public class StatsdPropertiesConfigAdapter extends PropertiesConfigAdapter<StatsdProperties> implements io.micrometer.statsd.StatsdConfig
Adapter to convertStatsdProperties
to aStatsdConfig
.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description StatsdPropertiesConfigAdapter(StatsdProperties properties)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
enabled()
io.micrometer.statsd.StatsdFlavor
flavor()
String
get(String s)
String
host()
int
maxPacketLength()
Duration
pollingFrequency()
int
port()
boolean
publishUnchangedMeters()
Methods inherited from class org.springframework.boot.actuate.autoconfigure.metrics.export.properties.PropertiesConfigAdapter
get
Constructor Detail
StatsdPropertiesConfigAdapter
public StatsdPropertiesConfigAdapter(StatsdProperties properties)
Method Detail
get
public String get(String s)
- Specified by:
get
in interfaceio.micrometer.core.instrument.config.MeterRegistryConfig
flavor
public io.micrometer.statsd.StatsdFlavor flavor()
- Specified by:
flavor
in interfaceio.micrometer.statsd.StatsdConfig
enabled
public boolean enabled()
- Specified by:
enabled
in interfaceio.micrometer.statsd.StatsdConfig
port
public int port()
- Specified by:
port
in interfaceio.micrometer.statsd.StatsdConfig
maxPacketLength
public int maxPacketLength()
- Specified by:
maxPacketLength
in interfaceio.micrometer.statsd.StatsdConfig
pollingFrequency
public Duration pollingFrequency()
- Specified by:
pollingFrequency
in interfaceio.micrometer.statsd.StatsdConfig
publishUnchangedMeters
public boolean publishUnchangedMeters()
- Specified by:
publishUnchangedMeters
in interfaceio.micrometer.statsd.StatsdConfig