File tree Expand file tree Collapse file tree 3 files changed +104
-0
lines changed
src/main/java/com/redhat/podmortem/common/model/analysis Expand file tree Collapse file tree 3 files changed +104
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .redhat .podmortem .common .model .analysis ;
2+
3+ import io .quarkus .runtime .annotations .RegisterForReflection ;
4+
5+ @ RegisterForReflection
6+ public class AnalysisMetadata {
7+ private int totalLines ;
8+ private int significantEvents ;
9+ private long processingTimeMs ;
10+
11+ public int getTotalLines () {
12+ return totalLines ;
13+ }
14+
15+ public void setTotalLines (int totalLines ) {
16+ this .totalLines = totalLines ;
17+ }
18+
19+ public int getSignificantEvents () {
20+ return significantEvents ;
21+ }
22+
23+ public void setSignificantEvents (int significantEvents ) {
24+ this .significantEvents = significantEvents ;
25+ }
26+
27+ public long getProcessingTimeMs () {
28+ return processingTimeMs ;
29+ }
30+
31+ public void setProcessingTimeMs (long processingTimeMs ) {
32+ this .processingTimeMs = processingTimeMs ;
33+ }
34+ }
Original file line number Diff line number Diff line change 1+ package com .redhat .podmortem .common .model .analysis ;
2+
3+ import io .quarkus .runtime .annotations .RegisterForReflection ;
4+ import java .util .List ;
5+
6+ @ RegisterForReflection
7+ public class AnalysisResult {
8+ private AnalysisMetadata metadata ;
9+ private List <MatchedEvent > events ;
10+
11+ public AnalysisMetadata getMetadata () {
12+ return metadata ;
13+ }
14+
15+ public void setMetadata (AnalysisMetadata metadata ) {
16+ this .metadata = metadata ;
17+ }
18+
19+ public List <MatchedEvent > getEvents () {
20+ return events ;
21+ }
22+
23+ public void setEvents (List <MatchedEvent > events ) {
24+ this .events = events ;
25+ }
26+ }
Original file line number Diff line number Diff line change 1+ package com .redhat .podmortem .common .model .analysis ;
2+
3+ import com .redhat .podmortem .common .model .pattern .Pattern ;
4+ import io .quarkus .runtime .annotations .RegisterForReflection ;
5+
6+ @ RegisterForReflection
7+ public class MatchedEvent {
8+ private double score ;
9+ private int lineNumber ;
10+ private String logLine ;
11+ private Pattern matchedPattern ;
12+
13+ public double getScore () {
14+ return score ;
15+ }
16+
17+ public void setScore (double score ) {
18+ this .score = score ;
19+ }
20+
21+ public int getLineNumber () {
22+ return lineNumber ;
23+ }
24+
25+ public void setLineNumber (int lineNumber ) {
26+ this .lineNumber = lineNumber ;
27+ }
28+
29+ public String getLogLine () {
30+ return logLine ;
31+ }
32+
33+ public void setLogLine (String logLine ) {
34+ this .logLine = logLine ;
35+ }
36+
37+ public Pattern getMatchedPattern () {
38+ return matchedPattern ;
39+ }
40+
41+ public void setMatchedPattern (Pattern matchedPattern ) {
42+ this .matchedPattern = matchedPattern ;
43+ }
44+ }
You can’t perform that action at this time.
0 commit comments