@ParametersAreNonnullByDefault public class HealthCheckResult extends Object
HealthCheck
.Modifier | Constructor and Description |
---|---|
protected |
HealthCheckResult(HealthCheck healthCheck,
com.atlassian.johnson.event.Event event,
URL kbUrl,
String cause,
String logMessage) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
static 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.
|
String |
getCause()
Returns a human-readable description of this result, with a value that is allowed to be sent via analytics.
|
com.atlassian.johnson.event.Event |
getEvent()
Returns the Johnson event to be raised as a result of this result.
|
HealthCheck |
getHealthCheck()
Returns the check that gave rise to this result.
|
Optional<URL> |
getKbUrl()
Returns the URL of the Atlassian Knowledgebase article that helps the user respond to this result.
|
String |
getLogMessage()
Returns the log equivalent of the message shown in the UI for this result
|
int |
hashCode() |
String |
toString() |
protected HealthCheckResult(HealthCheck healthCheck, com.atlassian.johnson.event.Event event, @Nullable URL kbUrl, String cause, String logMessage)
public static List<HealthCheckResult> fail(HealthCheck healthCheck, com.atlassian.johnson.event.Event event, @Nullable URL kbUrl, String cause, String logMessage)
@Nonnull public HealthCheck getHealthCheck()
@Nonnull public com.atlassian.johnson.event.Event getEvent()
@Nonnull public Optional<URL> getKbUrl()
@Nonnull public String getCause()
@Nonnull public String getLogMessage()
Copyright © 2002-2021 Atlassian. All Rights Reserved.