java.lang.Object
org.axonframework.extension.metrics.micrometer.springboot.MetricsProperties

@ConfigurationProperties("axon.metrics") public class MetricsProperties extends Object
Properties describing the settings for metrics.
Since:
3.2.0
Author:
Steven van Beelen
  • Constructor Details

    • MetricsProperties

      public MetricsProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Indicates whether the auto-configuration of metrics is enabled.
      Returns:
      true if the auto-configuration of metrics is enabled, false if otherwise
    • setEnabled

      public void setEnabled(boolean enabled)
      Enables (if true, default) or disables (if false) the auto-configuration of metrics within the application context.
      Parameters:
      enabled - whether to enable metrics autoconfiguration
    • getMicrometer

      public MetricsProperties.Micrometer getMicrometer()
      Retrieves the Micrometer specific settings for metrics.
      Returns:
      the Micrometer settings for metrics
    • setMicrometer

      public void setMicrometer(MetricsProperties.Micrometer micrometer)
      Defines the Micrometer settings for metrics.
      Parameters:
      micrometer - the Micrometer settings for metrics