0.2.2 • Published 11 months ago

medicus v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Medicus

Flexible and agnostic health checks. Ensure the post-deployment health of your services.

Medicus is a comprehensive, agnostic health check library for Node.js. It provides an easy way to monitor the health of various services and integrates seamlessly with Fastify.

Read the docs to Learn More.

import { Medicus, HealthStatus } from 'medicus';

const medicus = new Medicus();

// Add health checkers
medicus.addChecker({
  database() {
    // Custom health logic
    return HealthStatus.HEALTHY;
  },
  cache() {
    // Simulate an unhealthy status
    return HealthStatus.UNHEALTHY;
  }
});

// Perform a health check
const result = await medicus.performCheck(true);
// {
//   status: 'UNHEALTHY',
//   services: {
//     database: { status: 'HEALTHY' },
//     cache: { status: 'UNHEALTHY' }
//   }
// }

License

Licensed under the MIT. See LICENSE for more information.

Star History

All Thanks To Our Contributors:

0.2.2

11 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.1.0

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago