File size: 1,438 Bytes
f5957a1
 
 
 
 
 
 
 
 
 
 
 
 
 
a8a7b69
f5957a1
 
 
 
 
 
 
 
 
a8a7b69
f5957a1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ServerMonitoring } from './entities/server-monitoring.entity';
import { SystemError } from './entities/system-error.entity';
import { SslCertificate } from './entities/ssl-certificate.entity';
import { SystemAlert } from './entities/system-alert.entity';
import { MonitoringService } from './services/monitoring.service';
import { ErrorsService } from './services/errors.service';
import { SslService } from './services/ssl.service';
import { AlertsService } from './services/alerts.service';
import { MonitoringController } from './controllers/monitoring.controller';
import { ErrorsController } from './controllers/errors.controller';
import { SslController } from './controllers/ssl.controller';
import { AlertsController } from './controllers/alerts.controller';
import { NotificationsModule } from '../notifications/notifications.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      ServerMonitoring,
      SystemError,
      SslCertificate,
      SystemAlert,
    ]),
    NotificationsModule,
  ],
  controllers: [
    MonitoringController,
    ErrorsController,
    SslController,
    AlertsController,
  ],
  providers: [
    MonitoringService,
    ErrorsService,
    SslService,
    AlertsService,
  ],
  exports: [MonitoringService, ErrorsService, SslService, AlertsService],
})
export class MonitoringModule {}