1.0.5 ā€¢ Published 4 years ago

healthz-module v1.0.5

Weekly downloads
3
License
MIT
Repository
gitlab
Last release
4 years ago

Welcome to healthz-module šŸ‘‹

NestJS health module based on Terminus

šŸ  Homepage

Install

npm install healthz-module --save

Usage

Add to your module next options:

 HealthModule.register({
            checkServices: {
                mongodb: [
                    {
                        connectionName: '', // DB connection name
                        connectionUrl: '', // DB connection uri
                    },
                    {
                        connectionName: '', // DB connection name
                        connectionUrl: ''  // DB connection uri
                    }
                ],
                redis: [
                     {
                        connectionName: '', // Redis connection name
                        connectionUrl: ''  // Redis connection uri
                    }
                ]
            },
        })

where checkServices options is:

Module optionsValuesRequired
mongodbMongoDB optionsno
redisRedis optionsno

After that health check available on https://localhost/healthz

Run tests

npm run test

Author

šŸ‘¤ Yaroslav Kuznetsov y.kuznetsov@admitad.com

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page.

Show your support

Give a ā­ļø if this project helped you!


This README was generated with ā¤ļø by readme-md-generator