Package com.atlassian.jira.health
Class HealthCheckResult
java.lang.Object
com.atlassian.jira.health.HealthCheckResult
The result of a
HealthCheck.- Since:
- 7.4
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHealthCheckResult(HealthCheck healthCheck, com.atlassian.johnson.event.Event event, URL kbUrl, String cause, String logMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic List<HealthCheckResult>fail(HealthCheck healthCheck, com.atlassian.johnson.event.Event event, URL kbUrl, String cause, String logMessage) Create a 'failed' result containing the given parameters.getCause()Returns a human-readable description of this result, with a value that is allowed to be sent via analytics.com.atlassian.johnson.event.EventgetEvent()Returns the Johnson event to be raised as a result of this result.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.Returns the log equivalent of the message shown in the UI for this resultinthashCode()toString()
-
Constructor Details
-
HealthCheckResult
protected 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
@Nonnull public 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()
-