Class HealthCheckResult
java.lang.Object
com.atlassian.confluence.internal.health.HealthCheckResult
The result of a
HealthCheck
.- Since:
- 6.6.0
-
Constructor Summary
ConstructorsConstructorDescriptionHealthCheckResult
(HealthCheck healthCheck, com.atlassian.johnson.event.Event event, @Nullable URL kbUrl, String cause, String logMessage) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.@NonNull String
getCause()
Returns a human-readable description of this result, with a value that is allowed to be sent via analytics.@NonNull com.atlassian.johnson.event.Event
getEvent()
Returns the Johnson event to be raised as a result of this result.@NonNull HealthCheck
Returns the check that gave rise to this result.getKbUrl()
Returns the URL of the Atlassian Knowledgebase article that helps the user respond to this result.@NonNull String
Returns the log equivalent of the message shown in the UI for this resultint
hashCode()
toString()
-
Constructor Details
-
HealthCheckResult
public HealthCheckResult(HealthCheck healthCheck, com.atlassian.johnson.event.Event event, @Nullable URL kbUrl, String cause, String logMessage)
-
-
Method Details
-
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
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
Returns the URL of the Atlassian Knowledgebase article that helps the user respond to this result.- Returns:
- see above
-
getCause
Returns a human-readable description of this result, with a value that is allowed to be sent via analytics.- Returns:
- see above
-
getLogMessage
Returns the log equivalent of the message shown in the UI for this result- Returns:
- see above
-
toString
-
equals
-
hashCode
public int hashCode()
-