@ConfigurationProperties(prefix="spring.cloud.stream.metrics") public class ApplicationMetricsProperties extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
Constructor and Description |
---|
ApplicationMetricsProperties(org.springframework.boot.actuate.metrics.export.MetricExportProperties metricExportProperties) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getExportProperties() |
String |
getKey() |
String |
getMetricName() |
String |
getPrefix() |
String[] |
getProperties() |
org.springframework.boot.actuate.metrics.export.TriggerProperties |
getTrigger() |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
Iterates over all property sources from this application context and copies the
ones listed in
ApplicationMetricsProperties includes. |
void |
setKey(String key) |
void |
setPrefix(String prefix) |
void |
setProperties(String[] properties) |
public ApplicationMetricsProperties(org.springframework.boot.actuate.metrics.export.MetricExportProperties metricExportProperties)
public org.springframework.boot.actuate.metrics.export.TriggerProperties getTrigger()
public String getPrefix()
public void setPrefix(String prefix)
public String getKey()
public void setKey(String key)
public String[] getProperties()
public void setProperties(String[] properties)
public String getMetricName()
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
ApplicationMetricsProperties
includes.onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.