This package provides plugins for integrating the The Shelf notification package in Jitar applications.
It contains a single health check for checking the file store health.
npm install @theshelf/notification @jitar-plugins/notificationFollow the following steps to configure and use the provided health check.
// src/health/notificationHealthCheck.ts
import notificationService from '@theshelf/notification';
import { NotificationHealthCheck } from '@jitar-plugins/notification';
export default new NotificationHealthCheck(notificationService);With the health check in place, it needs to be activated by registering it to the worker / standalone service.
/* services/some-worker.json */
{
"url": "http://example.com:3000",
"healthChecks": [ /* add health checks here */
"./health/notificationHealthCheck"
],
"worker":
{
/* service configuration */
}
}