Class MetricsProperties
java.lang.Object
org.axonframework.extension.metrics.micrometer.springboot.MetricsProperties
Properties describing the settings for metrics.
- Since:
- 3.2.0
- Author:
- Steven van Beelen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProperties specific for usage with Micrometer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the Micrometer specific settings for metrics.booleanIndicates whether the auto-configuration of metrics is enabled.voidsetEnabled(boolean enabled) Enables (iftrue, default) or disables (iffalse) the auto-configuration of metrics within the application context.voidsetMicrometer(MetricsProperties.Micrometer micrometer) Defines the Micrometer settings for metrics.
-
Constructor Details
-
MetricsProperties
public MetricsProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Indicates whether the auto-configuration of metrics is enabled.- Returns:
trueif the auto-configuration of metrics is enabled,falseif otherwise
-
setEnabled
public void setEnabled(boolean enabled) Enables (iftrue, default) or disables (iffalse) the auto-configuration of metrics within the application context.- Parameters:
enabled- whether to enable metrics autoconfiguration
-
getMicrometer
Retrieves the Micrometer specific settings for metrics.- Returns:
- the Micrometer settings for metrics
-
setMicrometer
Defines the Micrometer settings for metrics.- Parameters:
micrometer- the Micrometer settings for metrics
-