Skip to content

Commit 8dbe4e2

Browse files
committed
Add 'filePath' field in 'AlertLog' model and set value when monitoring alert log
1 parent 27539f2 commit 8dbe4e2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/root/core/domain/AlertLog.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
@Data
99
public class AlertLog {
10+
private String filePath;
1011
private String fullLogString;
1112
private List<Log> alertLogs;
1213

src/main/java/root/core/usecase/implement/ServerMonitoringUsecaseImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,9 @@ public AlertLog getAlertLogDuringPeriod(AlertLogCommand alc, String startDate, S
344344
}
345345
}
346346

347-
// 종료 후 fullLogString 추가
347+
// 종료 후 fullLogString 추가 & Alert log file path 설정
348348
alertLog.setFullLogString(sb.toString());
349+
alertLog.setFilePath(alc.getReadFilePath());
349350

350351
log.info("\t▶ Alert Log READ LINE: " + (readEndIndex - readStartIndex) + "/" + alc.getReadLine());
351352

0 commit comments

Comments
 (0)