Interface BaseMetricsSettings

    • Method Detail

      • create

        static BaseMetricsSettings create()
        Creates a new instance of BaseMetricsSettings with defaults.
        Returns:
        new default instance
      • create

        static BaseMetricsSettings create​(Config config)
        Creates a new instance of BaseMetricsSettings based on the specified Config node containing base metrics settings.
        Parameters:
        config - Config node containing base metrics settings
        Returns:
        new BaseMetricsSettings according to the configuration
      • builder

        static BaseMetricsSettings.Builder builder()
        Creates a new instance of the builder for BaseMetricsSettings.
        Returns:
        new builder
      • builder

        static BaseMetricsSettings.Builder builder​(BaseMetricsSettings baseMetricsSettings)
        Creates a new instance of the builder based on the current settings in a BaseMetricsSettings object.
        Parameters:
        baseMetricsSettings - existing base metrics settings
        Returns:
        new Builder initialized with the provided settings
      • isEnabled

        boolean isEnabled()
        Returns:
        whether base metrics are enabled in the settings.
      • isBaseMetricEnabled

        boolean isBaseMetricEnabled​(String dottedName)
        Parameters:
        dottedName - dotted name (e.g., memory.usedHeap) for the base metric of interest
        Returns:
        whether that metric is enabled or not
      • baseMetricEnabledSettings

        Map<String,​Boolean> baseMetricEnabledSettings()
        Returns:
        Map from base metric names to explicit enabled/disabled settings