Interface ComponentMetricsSettings.Builder

    • Field Detail

      • METRICS_CONFIG_KEY

        static final String METRICS_CONFIG_KEY
        By convention, the config key within the component's config section containing metrics settings for the component.
        See Also:
        Constant Field Values
      • ENABLED_CONFIG_KEY

        static final String ENABLED_CONFIG_KEY
        Config key within the component's metrics config section controlling whether metrics are enabled for that component.
        See Also:
        Constant Field Values
    • Method Detail

      • build

        ComponentMetricsSettings build()
        Constructs a ComponentMetricsSettings object from the builder.
        Specified by:
        build in interface io.helidon.common.Builder<ComponentMetricsSettings>
        Returns:
        new settings instance based on the builder
      • enabled

        ComponentMetricsSettings.Builder enabled​(boolean value)
        Sets whether metrics should be enabled for the component.
        Parameters:
        value - true if metrics should be enabled for the component; false if not
        Returns:
        updated builder
      • config

        ComponentMetricsSettings.Builder config​(Config config)
        Updates the builder using the provided metrics config.
        Parameters:
        config - the component's metrics config section
        Returns:
        updated builder