import { Module } from '@nestjs/common';
import { TerminusModule } from '@nestjs/terminus';
import { ConfigModule } from '@nestjs/config';
import { HealthController } from './health.controller';
import { RedisHealthIndicator } from './indicators/redis.health';
import { MongoHealthIndicator } from './indicators/mongo.health';
import { MinioHealthIndicator } from './indicators/minio.health';
import { AzureHealthIndicator } from './indicators/azure.health';

@Module({
  imports: [TerminusModule, ConfigModule],
  controllers: [HealthController],
  providers: [
    RedisHealthIndicator,
    MongoHealthIndicator,
    MinioHealthIndicator,
    AzureHealthIndicator,
  ],
})
export class HealthModule {}
