Class ApplicationMetricsProperties
- java.lang.Object
-
- org.springframework.cloud.stream.micrometer.ApplicationMetricsProperties
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.EnvironmentAware
@ConfigurationProperties(prefix="spring.cloud.stream.metrics") public class ApplicationMetricsProperties extends Object implements org.springframework.context.EnvironmentAware, org.springframework.context.ApplicationContextAware
- Author:
- Vinicius Carvalho, Janne Valkealahti, Oleg Zhurakousky
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXPORT_FILTERProperty for the metrics filter.static StringPREFIXPrefix for Stream application metrics.
-
Constructor Summary
Constructors Constructor Description ApplicationMetricsProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getExportProperties()StringgetKey()StringgetMeterFilter()String[]getProperties()DurationgetScheduleInterval()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetEnvironment(org.springframework.core.env.Environment environment)voidsetKey(String key)voidsetMeterFilter(String meterFilter)voidsetProperties(String[] properties)voidsetScheduleInterval(Duration scheduleInterval)
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
Prefix for Stream application metrics.- See Also:
- Constant Field Values
-
EXPORT_FILTER
public static final String EXPORT_FILTER
Property for the metrics filter.- See Also:
- Constant Field Values
-
-
Method Detail
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getKey
public String getKey()
-
setKey
public void setKey(String key)
-
getProperties
public String[] getProperties()
-
setProperties
public void setProperties(String[] properties)
-
getScheduleInterval
public Duration getScheduleInterval()
-
setScheduleInterval
public void setScheduleInterval(Duration scheduleInterval)
-
getMeterFilter
public String getMeterFilter()
-
setMeterFilter
public void setMeterFilter(String meterFilter)
-
-