ProductOpener::Minion - functions to integrate with minion
ProductOpener::Minion is handling pushing info to Redis to communicate updates to all services,
including search-a-licious,
as well as receiving updates from other services like Keycloak.
Function to get the backend minion
None
The backend minion $minion
Execute a component health check and return a health-check result object.
This sub documents the expected interface for health checks used by ProductOpener::APIHealth.
Implementations should perform one focused check and return an array reference of check objects compatible with https://inadarei.github.io/rfc-healthcheck/.
Each check object in the returned array reference must include:
status
String indicating the check result.
Expected values are pass,
warn or fail.
output
Human-readable message describing the outcome.
Additional RFC fields (for example componentType,
time,
observedValue,
observedUnit and links) may be included when relevant.
If componentId is included,
it should be a stable UUID.
The sub should not die.
If an internal error occurs,
return one check object with status => 'fail' and a meaningful output message.