Class MetricExportProperties
- java.lang.Object
- org.springframework.boot.actuate.metrics.export.TriggerProperties
- org.springframework.boot.actuate.metrics.export.MetricExportProperties
@ConfigurationProperties(prefix="spring.metrics.export") public class MetricExportProperties extends TriggerProperties
Configuration properties for metrics export.- Since:
- 1.3.0
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetricExportProperties.Aggregate
Aggregate properties.static class
MetricExportProperties.Redis
Redis properties.static class
MetricExportProperties.Statsd
Statsd properties.
Constructor Summary
Constructors Constructor Description MetricExportProperties()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TriggerProperties
findTrigger(String name)
Find a matching trigger configuration.MetricExportProperties.Aggregate
getAggregate()
MetricExportProperties.Redis
getRedis()
MetricExportProperties.Statsd
getStatsd()
Map<String,SpecificTriggerProperties>
getTriggers()
Configuration for triggers on individual named writers.void
setAggregate(MetricExportProperties.Aggregate aggregate)
void
setRedis(MetricExportProperties.Redis redis)
void
setStatsd(MetricExportProperties.Statsd statsd)
void
setUpDefaults()
Methods inherited from class org.springframework.boot.actuate.metrics.export.TriggerProperties
getDelayMillis, getExcludes, getIncludes, isEnabled, isSendLatest, setDelayMillis, setEnabled, setExcludes, setIncludes, setSendLatest
Constructor Detail
MetricExportProperties
public MetricExportProperties()
Method Detail
setUpDefaults
@PostConstruct public void setUpDefaults()
getTriggers
public Map<String,SpecificTriggerProperties> getTriggers()
Configuration for triggers on individual named writers. Each value can individually specify a name pattern explicitly, or else the map key will be used if the name is not set.- Returns:
- the writers
getAggregate
public MetricExportProperties.Aggregate getAggregate()
setAggregate
public void setAggregate(MetricExportProperties.Aggregate aggregate)
getRedis
public MetricExportProperties.Redis getRedis()
setRedis
public void setRedis(MetricExportProperties.Redis redis)
getStatsd
public MetricExportProperties.Statsd getStatsd()
setStatsd
public void setStatsd(MetricExportProperties.Statsd statsd)
findTrigger
public TriggerProperties findTrigger(String name)
Find a matching trigger configuration.- Parameters:
name
- the bean name to match- Returns:
- a matching configuration if there is one