Class HealthCheckResult


  • @ParametersAreNonnullByDefault
    public class HealthCheckResult
    extends Object
    The result of a HealthCheck.
    Since:
    6.6.0
    • Constructor Detail

      • HealthCheckResult

        protected HealthCheckResult​(HealthCheck healthCheck,
                                    com.atlassian.johnson.event.Event event,
                                    @Nullable URL kbUrl,
                                    String cause,
                                    String logMessage)
    • Method Detail

      • fail

        public static List<HealthCheckResult> fail​(HealthCheck healthCheck,
                                                   com.atlassian.johnson.event.Event event,
                                                   @Nullable URL kbUrl,
                                                   String cause,
                                                   String logMessage)
        Create a 'failed' result containing the given parameters.
      • getHealthCheck

        public @NonNull HealthCheck getHealthCheck()
        Returns the check that gave rise to this result.
        Returns:
        see above
      • getEvent

        public @NonNull com.atlassian.johnson.event.Event getEvent()
        Returns the Johnson event to be raised as a result of this result.
        Returns:
        see above
      • getKbUrl

        public @NonNull Optional<URL> getKbUrl()
        Returns the URL of the Atlassian Knowledgebase article that helps the user respond to this result.
        Returns:
        see above
      • getCause

        public @NonNull String getCause()
        Returns a human-readable description of this result, with a value that is allowed to be sent via analytics.
        Returns:
        see above
      • getLogMessage

        public @NonNull String getLogMessage()
        Returns the log equivalent of the message shown in the UI for this result
        Returns:
        see above
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object