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 ControlPanel
ControlPanel.Category, ControlPanel.View -
Field Summary
FieldsFields inherited from class AbstractControlPanel
configuration, controlPanelNameFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionHealthControlPanel(io.micronaut.management.endpoint.health.HealthEndpoint endpoint, ControlPanelConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.management.health.indicator.HealthResultgetBody()Used to render the body of the control panel.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ControlPanel
getBadge, getBodyView, getCategory, getDetailedView, hasDetails
-
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:ControlPanelUsed to render the body of the control panel.- Returns:
- the body of the control panel.
-