Operation: Health
The Health
operation provides information on the health status of the system.
The following parameters must be set for this operation:
protocol
host
port
path
Input
This operation does not require any input.
Output with Wildfly as endpoint
With Wildfly as the endpoint, the adapter generates an XML file in the following format:
<?xml version="1.0" encoding="UTF-8"?>
<health>
<item>
<name>suspend-state</name>
<outcome>true</outcome>
<data>
<item>
<value>RUNNING</value>
</item>
</data>
</item>
<item>
<name>server-state</name>
<outcome>true</outcome>
<data>
<item>
<value>running</value>
</item>
</data>
</item>
<item>
<name>deployments-status</name>
<outcome>true</outcome>
<data>
<deployment>
<x4-7.4.0-SNAPSHOT.ear>OK</x4-7.4.0-SNAPSHOT.ear>
</deployment>
<deployment>
<X4ControlCenter-7.4.0-SNAPSHOT.war>OK</X4ControlCenter-7.4.0-SNAPSHOT.war>
</deployment>
</data>
</item>
<item>
<name>boot-errors</name>
<outcome>true</outcome>
</item>
<item>
<name>live-server</name>
<outcome>true</outcome>
</item>
<item>
<name>started-server</name>
<outcome>true</outcome>
</item>
<item>
<outcome>true</outcome>
</item>
</health>
The following elements are contained in the output with Wildfly as endpoint:
Element | Description |
---|---|
| Root element for the |
| The
|
| Name of the health check performed |
| Indicates whether the health check was carried out successfully and whether the examined service is running. Possible values:
|
| The
Possible values for the element
|
For Wildfly, the data can also be accessed via the following URL:
Output with Keycloak as endpoint
With Keycloak as the endpoint, the adapter generates an XML file in the following format:
The JSON generated from Keycloak is output as XML in X4.
<?xml version="1.0" encoding="UTF-8"?>
<health>
<status>UP</status>
<checks>
<item>
<name>Keycloak database connections health check</name>
<status>UP</status>
</item>
</checks>
</health>
The following elements are contained in the output with Keycloak as the endpoint:
Element | Description |
---|---|
| Root element for the |
| Indicates the status. Possible values:
|
| The Information on |
| Name of the health check performed |
For Keycloak, the data can also be accessed via the following URL: