Class EnvironmentControlPanel

java.lang.Object
io.micronaut.controlpanel.core.AbstractControlPanel<Map<String,Object>>
io.micronaut.controlpanel.panels.management.EnvironmentControlPanel
All Implemented Interfaces:
ConfigurableControlPanel, ControlPanel<Map<String,Object>>, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, io.micronaut.core.util.Toggleable

@Singleton @Refreshable @Requires(beans=io.micronaut.management.endpoint.env.EnvironmentEndpoint.class) @Requires(property="micronaut.control-panel.panels.env.enabled",notEquals="false") public class EnvironmentControlPanel extends AbstractControlPanel<Map<String,Object>>
Control panel that displays information about the environment properties.
Since:
1.0.0
Author:
Álvaro Sánchez-Mariscal
  • Field Details

  • Constructor Details

    • EnvironmentControlPanel

      public EnvironmentControlPanel(io.micronaut.management.endpoint.env.EnvironmentEndpoint endpoint, io.micronaut.context.env.Environment environment, @Named("env") ControlPanelConfiguration configuration)
  • Method Details

    • getBody

      public Map<String,Object> getBody()
      Description copied from interface: ControlPanel
      Used to render the body of the control panel.
      Returns:
      the body of the control panel.
    • getBadge

      public String getBadge()
      Description copied from interface: ControlPanel
      Badge text to be displayed in the header of the card UI element.
      Returns:
      the badge text of the control panel.