55import com .park .utmstack .domain .application_events .enums .ApplicationEventType ;
66import com .park .utmstack .domain .incident .UtmIncident ;
77import com .park .utmstack .domain .mail_sender .MailConfig ;
8+ import com .park .utmstack .domain .shared_types .alert .Event ;
89import com .park .utmstack .domain .shared_types .alert .UtmAlert ;
910import com .park .utmstack .domain .shared_types .LogType ;
1011import com .park .utmstack .service .application_events .ApplicationEventService ;
@@ -250,7 +251,7 @@ public void sendPasswordResetMail(User user) {
250251 }
251252
252253 @ Async
253- public void sendAlertEmail (List <String > emailsTo , UtmAlert alert , List <LogType > relatedLogs ) {
254+ public void sendAlertEmail (List <String > emailsTo , UtmAlert alert , List <Event > relatedLogs ) {
254255 final String ctx = CLASS_NAME + ".sendAlertEmail" ;
255256 try {
256257 JavaMailSender javaMailSender = getJavaMailSender ();
@@ -333,7 +334,7 @@ public void sendIncidentEmail(List<String> emailsTo, List<UtmAlert> alerts, UtmI
333334 * @throws Exception In case of any error
334335 */
335336 private ByteArrayResource buildAlertEmailAttachment (Context context , UtmAlert alert ,
336- List <LogType > relatedLogs ) throws Exception {
337+ List <Event > relatedLogs ) throws Exception {
337338 final String ctx = CLASS_NAME + ".buildAlertEmailAttachment" ;
338339 try {
339340 ByteArrayOutputStream bout = new ByteArrayOutputStream ();
@@ -351,9 +352,9 @@ private ByteArrayResource buildAlertEmailAttachment(Context context, UtmAlert al
351352 }
352353 }
353354
354- private void buildRelatedEventCsvAttachment (List <LogType > relatedLogs , ZipOutputStream zipOut ) {
355+ private void buildRelatedEventCsvAttachment (List <Event > relatedLogs , ZipOutputStream zipOut ) {
355356 final String ctx = CLASS_NAME + ".buildRelatedEventCsvAttachment" ;
356- Map <String , List <LogType >> evtTypes = new HashMap <>();
357+ Map <String , List <Event >> evtTypes = new HashMap <>();
357358
358359 // Separating event types
359360 relatedLogs .forEach (doc -> {
0 commit comments