类 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.- 从以下版本开始:
- 1.3.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
MetricExportProperties.Aggregate
Aggregate properties.static class
MetricExportProperties.Redis
Redis properties.static class
MetricExportProperties.Statsd
Statsd properties.
构造器概要
构造器 构造器 说明 MetricExportProperties()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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()
从类继承的方法 org.springframework.boot.actuate.metrics.export.TriggerProperties
getDelayMillis, getExcludes, getIncludes, isEnabled, isSendLatest, setDelayMillis, setEnabled, setExcludes, setIncludes, setSendLatest
构造器详细资料
MetricExportProperties
public MetricExportProperties()
方法详细资料
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.- 返回:
- 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.- 参数:
name
- the bean name to match- 返回:
- a matching configuration if there is one