public interface HealthCheck
perform(LifecyclePhase)
method.Modifier and Type | Field and Description |
---|---|
static String |
BLOCKING_START
Boolean indicating whether an event is blocking start.
|
static String |
CAUSE_KEY
Checks which send analytics can provide a short cause which is analytics safe, i.e.
|
static String |
CHECK_ID_KEY
Checks that wish to have analytics events raised (e.g.
|
static String |
DISMISSIBLE
Boolean indicating whether an event is dismissible.
|
static String |
EVENT_ID_KEY
The unique ID of an individual Johnson event arising from a
HealthCheck . |
static String |
HELP_URL_KEY
Checks that wish to provide a help link to public-facing documentation should
set this attribute to the relevant URL on the Johnson event that they return.
|
static String |
INTERACTIVE_JOHNSON
The value of the
JOHNSON_UI_VERSION attribute that indicates
events are to be displayed in the "Better Johnson" UI added by CPU-59. |
static String |
JOHNSON_UI_VERSION
The Johnson event attribute that if present specifies what version of the
Johnson UI is meant to display the events returned by this executor.
|
static String |
TEMPLATE_CONTEXT
Object to be converted to Json and sent as the value of the 'templateContext' key
|
Modifier and Type | Method and Description |
---|---|
default String |
getId()
Returns the unique ID of this check.
|
Collection<HealthCheck> |
getPrerequisites()
Returns the checks that must have a non-
EventLevel.FATAL
result before this check can be run. |
boolean |
isApplicableFor(LifecyclePhase phase)
Checks if current HealthCheck is applicable for given phase
|
List<HealthCheckResult> |
perform(LifecyclePhase phase)
Performs health check for given phase
|
static final String CHECK_ID_KEY
static final String EVENT_ID_KEY
HealthCheck
.static final String HELP_URL_KEY
static final String CAUSE_KEY
static final String JOHNSON_UI_VERSION
Event.getAttribute(Object)
,
Constant Field Valuesstatic final String INTERACTIVE_JOHNSON
JOHNSON_UI_VERSION
attribute that indicates
events are to be displayed in the "Better Johnson" UI added by CPU-59.Event.getAttribute(Object)
,
Constant Field Valuesstatic final String DISMISSIBLE
static final String BLOCKING_START
static final String TEMPLATE_CONTEXT
default String getId()
@Nonnull Collection<HealthCheck> getPrerequisites()
EventLevel.FATAL
result before this check can be run.@Nonnull List<HealthCheckResult> perform(LifecyclePhase phase) throws UnsupportedOperationException
HealthCheckResult
{@link
- UnsupportedOperationException} if not applicable phase is providedUnsupportedOperationException
boolean isApplicableFor(LifecyclePhase phase)
Copyright © 2002-2024 Atlassian. All Rights Reserved.