Class DiskSpaceHealthCheck.Builder

    • Method Detail

      • path

        public DiskSpaceHealthCheck.Builder path​(Path path)
        Path on the file system to find a file system.
        Parameters:
        path - path to use
        Returns:
        updated builder instance
      • thresholdPercent

        public DiskSpaceHealthCheck.Builder thresholdPercent​(double threshold)
        Threshold percent. When disk is fuller than this percentage, health is switched to down.
        Parameters:
        threshold - percentage
        Returns:
        updated builder instance
      • config

        public DiskSpaceHealthCheck.Builder config​(Config config)
        Set up the disk space health check via config keys, if present. Configuration options:
        Disk space health check configuration
        Key Default Value Description Builder method
        "path" "." Path for the device for which this health checks available space path(Path) or path(String)
        "thresholdPercent" 99.999 Minimum percent of disk space consumed for this health check to fail thresholdPercent(double)
        Parameters:
        config - Config node for disk space
        Returns:
        updated builder instance