Class HealthControlPanel
java.lang.Object
io.micronaut.controlpanel.core.AbstractControlPanel<io.micronaut.management.health.indicator.HealthResult>
io.micronaut.controlpanel.panels.management.HealthControlPanel
- All Implemented Interfaces:
ConfigurableControlPanel
,ControlPanel<io.micronaut.management.health.indicator.HealthResult>
,io.micronaut.core.naming.Named
,io.micronaut.core.order.Ordered
,io.micronaut.core.util.Toggleable
@Singleton
@Requires(beans=io.micronaut.management.endpoint.health.HealthEndpoint.class) @Requires(property="micronaut.control-panel.panels.health.enabled",notEquals="false")
public class HealthControlPanel
extends AbstractControlPanel<io.micronaut.management.health.indicator.HealthResult>
Control panel that displays information about the application health.
- Since:
- 1.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.controlpanel.core.ControlPanel
ControlPanel.Category, ControlPanel.View
-
Field Summary
Fields inherited from class io.micronaut.controlpanel.core.AbstractControlPanel
configuration, controlPanelName
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionHealthControlPanel
(io.micronaut.management.endpoint.health.HealthEndpoint endpoint, ControlPanelConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.management.health.indicator.HealthResult
getBody()
Used to render the body of the control panel.Methods inherited from class io.micronaut.controlpanel.core.AbstractControlPanel
getIcon, getName, getOrder, getTitle, isEnabled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.controlpanel.core.ControlPanel
getBadge, getBodyView, getCategory, getDetailedView
-
Field Details
-
NAME
- See Also:
-
ENABLED_PROPERTY
- See Also:
-
-
Constructor Details
-
HealthControlPanel
public HealthControlPanel(io.micronaut.management.endpoint.health.HealthEndpoint endpoint, @Named("health") ControlPanelConfiguration configuration)
-
-
Method Details
-
getBody
public io.micronaut.management.health.indicator.HealthResult getBody()Description copied from interface:ControlPanel
Used to render the body of the control panel.- Returns:
- the body of the control panel.
-