Skip to content

Commit f28ae41

Browse files
committed
patch(status): Add PodmortemStatus class
1 parent b49dc9c commit f28ae41

File tree

1 file changed

+96
-1
lines changed

1 file changed

+96
-1
lines changed
Lines changed: 96 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,103 @@
11
package com.redhat.podmortem.common.model.kube.podmortem;
22

33
import io.quarkus.runtime.annotations.RegisterForReflection;
4+
import java.time.Instant;
5+
import java.util.List;
46

57
@RegisterForReflection
68
public class PodmortemStatus {
7-
// TODO: add status fields
9+
10+
private String phase;
11+
private String message;
12+
private Instant lastUpdate;
13+
private Long observedGeneration;
14+
private List<PodFailureStatus> recentFailures;
15+
16+
public String getPhase() {
17+
return phase;
18+
}
19+
20+
public void setPhase(String phase) {
21+
this.phase = phase;
22+
}
23+
24+
public String getMessage() {
25+
return message;
26+
}
27+
28+
public void setMessage(String message) {
29+
this.message = message;
30+
}
31+
32+
public Instant getLastUpdate() {
33+
return lastUpdate;
34+
}
35+
36+
public void setLastUpdate(Instant lastUpdate) {
37+
this.lastUpdate = lastUpdate;
38+
}
39+
40+
public Long getObservedGeneration() {
41+
return observedGeneration;
42+
}
43+
44+
public void setObservedGeneration(Long observedGeneration) {
45+
this.observedGeneration = observedGeneration;
46+
}
47+
48+
public List<PodFailureStatus> getRecentFailures() {
49+
return recentFailures;
50+
}
51+
52+
public void setRecentFailures(List<PodFailureStatus> recentFailures) {
53+
this.recentFailures = recentFailures;
54+
}
55+
56+
public static class PodFailureStatus {
57+
private String podName;
58+
private String podNamespace;
59+
private Instant failureTime;
60+
private String analysisStatus;
61+
private String explanation;
62+
63+
public String getPodName() {
64+
return podName;
65+
}
66+
67+
public void setPodName(String podName) {
68+
this.podName = podName;
69+
}
70+
71+
public String getPodNamespace() {
72+
return podNamespace;
73+
}
74+
75+
public void setPodNamespace(String podNamespace) {
76+
this.podNamespace = podNamespace;
77+
}
78+
79+
public Instant getFailureTime() {
80+
return failureTime;
81+
}
82+
83+
public void setFailureTime(Instant failureTime) {
84+
this.failureTime = failureTime;
85+
}
86+
87+
public String getAnalysisStatus() {
88+
return analysisStatus;
89+
}
90+
91+
public void setAnalysisStatus(String analysisStatus) {
92+
this.analysisStatus = analysisStatus;
93+
}
94+
95+
public String getExplanation() {
96+
return explanation;
97+
}
98+
99+
public void setExplanation(String explanation) {
100+
this.explanation = explanation;
101+
}
102+
}
8103
}

0 commit comments

Comments
 (0)