import BlueHive from '@bluehive/sdk';const client = new BlueHive({ apiKey: process.env['BLUEHIVE_API_KEY'], // This is the default and can be omitted});const response = await client.database.checkHealth();console.log(response.status);
Check MongoDB database connectivity and retrieve health statistics.
GET
/
v1
/
database
/
health
JavaScript
Copy
import BlueHive from '@bluehive/sdk';const client = new BlueHive({ apiKey: process.env['BLUEHIVE_API_KEY'], // This is the default and can be omitted});const response = await client.database.checkHealth();console.log(response.status);