UNPKG

watchtower-node-sdk

Version:

A TypeScript Node.js SDK for the Watchtower API, providing API key management, connection string generation, and more

16 lines (14 loc) 409 B
import { BaseEndpoint } from '../base'; import { HealthResponse } from './types'; export class HealthEndpoint extends BaseEndpoint { constructor(client: any) { super(client, '/health'); } /** * Check the health status of the API * @returns Promise with the health status response */ async check(): Promise<HealthResponse> { return this.get<HealthResponse>(''); } }