Javascript
import BlueHive from '@bluehive/sdk'; const client = new BlueHive({ apiKey: 'My API Key', }); const response = await client.database.checkHealth(); console.log(response.status);
{ "status": "ok", "database": "<string>", "timestamp": "<string>", "stats": { "collections": 123, "documents": 123, "dataSize": 123 }, "error": "<string>" }
Check MongoDB database connectivity and retrieve health statistics.
Default Response
The response is of type object.
object
Was this page helpful?