Skip to content

Commit 9a1c6c6

Browse files
committed
patch(analysis): add an analysis sumamry object
1 parent 603aa62 commit 9a1c6c6

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package com.redhat.podmortem.common.model.analysis;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import java.util.Map;
5+
6+
public class AnalysisSummary {
7+
@JsonProperty("significant_events")
8+
private int significantEvents;
9+
10+
@JsonProperty("highest_severity")
11+
private String highestSeverity;
12+
13+
@JsonProperty("severity_distribution")
14+
private Map<String, Long> severityDistribution;
15+
16+
public int getSignificantEvents() {
17+
return significantEvents;
18+
}
19+
20+
public void setSignificantEvents(int significantEvents) {
21+
this.significantEvents = significantEvents;
22+
}
23+
24+
public String getHighestSeverity() {
25+
return highestSeverity;
26+
}
27+
28+
public void setHighestSeverity(String highestSeverity) {
29+
this.highestSeverity = highestSeverity;
30+
}
31+
32+
public Map<String, Long> getSeverityDistribution() {
33+
return severityDistribution;
34+
}
35+
36+
public void setSeverityDistribution(Map<String, Long> severityDistribution) {
37+
this.severityDistribution = severityDistribution;
38+
}
39+
}

0 commit comments

Comments
 (0)