Class HealthCheck


  • public final class HealthCheck
    extends Object
    Health check. example : dataStorePlugin.ping : Ping to a Database produces a specific health check with the actual measure of it {plugin/component}.{test} :
    Author:
    mlaroche
    • Constructor Detail

      • HealthCheck

        public HealthCheck​(String name,
                           String checker,
                           String module,
                           String feature,
                           Instant checkInstant,
                           HealthMeasure healthMeasure)
        Constructor.
        Parameters:
        name - the health check name
        checker - who created the measure
        module - the module (either technical or functional) the healthcheck is relative to (ex: commons, administration...)
        feature - the feature (a semantic one) to link healthchecks that concern the same subject (ex: database, billing...)
        checkInstant - when the check was performed
        healthMeasure - the measure
    • Method Detail

      • getName

        public String getName()
        Returns:
        the health check name
      • getChecker

        public String getChecker()
        Returns:
        the checker
      • getModule

        public String getModule()
      • getFeature

        public String getFeature()
      • getCheckInstant

        public Instant getCheckInstant()
        Returns:
        the instant when the check was performed
      • getMeasure

        public HealthMeasure getMeasure()
        Returns:
        the measure