Class TimeBasedDirectoryCleanerHealthCheck

java.lang.Object
com.codahale.metrics.health.HealthCheck
org.kiwiproject.dropwizard.metrics.health.TimeBasedDirectoryCleanerHealthCheck

public class TimeBasedDirectoryCleanerHealthCheck extends com.codahale.metrics.health.HealthCheck
A health check for TimeBasedDirectoryCleaner that checks if there have been any delete errors within a specific duration of time. Errors older than the warning threshold will not cause this to report as unhealthy; it will report unhealthy only if there are errors within the warning threshold.
  • Field Details

    • DEFAULT_DELETE_ERROR_THRESHOLD

      public static final Duration DEFAULT_DELETE_ERROR_THRESHOLD
  • Constructor Details

  • Method Details

    • check

      protected com.codahale.metrics.health.HealthCheck.Result check()
      Specified by:
      check in class com.codahale.metrics.health.HealthCheck