Class DiskSpaceHealthIndicator

java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
org.springframework.boot.actuate.system.DiskSpaceHealthIndicator
All Implemented Interfaces:
HealthContributor, HealthIndicator

public class DiskSpaceHealthIndicator extends AbstractHealthIndicator
A HealthIndicator that checks available disk space and reports a status of Status.DOWN when it drops below a configurable threshold.
Since:
2.0.0
  • Constructor Details

    • DiskSpaceHealthIndicator

      public DiskSpaceHealthIndicator(File path, org.springframework.util.unit.DataSize threshold)
      Create a new DiskSpaceHealthIndicator instance.
      Parameters:
      path - the Path used to compute the available disk space
      threshold - the minimum disk space that should be available
  • Method Details