To catch all possible failures in a centralized way, you can hook external supervision results like temperature monitoring or OS status to the Platform Health Management as Health Channels.
Steps:
Create Health Channel Interface
To supervise an external supervision result, you need to create a Health Channel Interface for it.
- Open the Platform Health Management Editor.
- Right-click on
Interfaces.
- Select Create PHM Health Channel Interface.
- The Create PHM Health Channel Interface wizard opens.
- Choose a name for your Health Channel.
- Choose the Package and the ARXML file where the Health Channel Interface should be stored.
- Click Finish.
- You have created a
Health Channel Interface. It is now listed under
Interfaces.
- Create the possible Statuses for your Health Channel.
- If a Status should Trigger a Recovery Notification then check the corresponding box.
- The
Health Channel Interface can now be connected to an application port in the Executable.
Create Health Channel Recovery Notification Interface
To be able to notify state management or the watchdog you need to create a Health Channel Recovery Notification Interface for the corresponding daemon process.
- You are in the PHM Editor.
- Right-click on
Interfaces.
- Select Create PHM Health Channel Recovery Notification Interface.
- The Create PHM Health Channel Recovery Notification Interface wizard opens.
- Choose a name for your Health Channel Recovery Notification Interface.
- Choose the Package and the ARXML file where the Notification Interface should be stored.
- Click Finish.
- You have created a
Health Channel Recovery Notification Interface. It is now listed under Interfaces. The
Health Channel Recovery Notification Interface can now be connected to a state manager port in the Executable.
Create ports for the Health Channel
To connect the PHM interfaces for the Health Channel as well as the Recovery Notification, we need to create a port for the corresponding SWComponents in the Executable.
- Open the Executable Editor (Shortcut: <CTRL> + <ALT> + <D>, <E>).
- Select the SWComponent for the application.
- Select the tab Others.
Add Port Prototype and check Required for your Health Channel Interface.
- Click Finish.
- The port for your Health Channel Interface is listed under Ports.
- Select the SWComponent for your state manager application.
- Select the tab Others.
Create Port Prototype and check Provided for your Health Channel Recovery Notification Interface.
- Click Finish.
- The port for your Health Channel Recovery Notification Interface is listed under Ports.
- Go back to the PHM Editor.
- You now have set up the basis for communication between your application process and the state manager. Proceed with configuring the behavior of health management.
Create Health Channel External Status
- You are in the PHM Editor.
- A
Contribution was created.
- Select the fitting
Contribution for your Health Channel.
- Right-click on
External Health Channels and select Create Health Channel External Status.
- A new
Health Channel External Status was added.
- Name the new status and fill out the necessary parameters.
Parameters Health Channel External Status
Parameter | Required/ | Data type | Description |
---|---|---|---|
Name | Required | String | Name of the Health Channel Status |
Description | Optional | String | Choose a good description that explains the Health Channel Status to your future self and your colleagues. |
Health Channel | Required | Reference | References Health Channel Port of a Executable process. |
Recovery Notification | Optional | Element | Defines the behavior of the Recovery Notification of a Health Channel Status. |
Create Recovery Notification for a Health Channel Status
- You are in the PHM Editor.
- A
Health Channel External Status was created.
- Select the Health Channel Status that should send a Recovery Notification.
- Select .
- A new section Recovery Notification appears.
- Fill out the parameters and map the corresponding state manager Port Prototype to the Recovery Notification process.
- You have successfully created a Recovery Notification for the selected Health Channel External Status
Parameters Recovery Notification
Parameter | Required/ | Data type | Description |
---|---|---|---|
Name | Required | String | Name of the Recovery Notification |
Description | Optional | String | Choose a good description that explains the Recovery Notification to your future self and your colleagues. |
Retry | Required | Reference | Number of times PHM tries to send a notification to State Management before triggering a watchdog reaction. |
Timeout | Optional | Integer | The maximum acceptable amount of time (seconds) that PHM is waiting for an acknowledgement by State Management after sending the notification. |
Mappings | Required | Reference | Maps the ports to which the Recovery Notification is sent to. |