import { HealthPlugin, createHttpIndicator } from '@setu-ts/health-plugin';app.register(HealthPlugin({ endpoints: { health: '/health', live: '/live', ready: '/ready', }, indicators: [ createHttpIndicator('external-api', { url: 'https://api.example.com/health' }), ],})); Copy
import { HealthPlugin, createHttpIndicator } from '@setu-ts/health-plugin';app.register(HealthPlugin({ endpoints: { health: '/health', live: '/live', ready: '/ready', }, indicators: [ createHttpIndicator('external-api', { url: 'https://api.example.com/health' }), ],}));
0.2.0
Example
Since
0.2.0