blob: 6b005b0c53a6c9b2c669c560bf270cc0a4f3fa00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
package org.openecomp.sdc.health.data;
/**
* {
"sdcVersion": "<SERVER_FULL_VERSION>"
"componentsInfo": [
{
"healthCheckComponent": "<COMPONENT_NAME>",
"healthCheckStatus": "<UP_OR_DOWN>",
"version": "<COMPONENT_VERSION>",
"description": "<OK_OR_ERROR_VERSION>"
}
]
}
*/
public class HealthInfo {
private MonitoredModules healthCheckComponent;
private HealthCheckStatus healthCheckStatus;
private String version;
private String description;
public HealthInfo() {
}
public HealthInfo(MonitoredModules healthCheckComponent, HealthCheckStatus healthCheckStatus, String version, String description) {
this.healthCheckComponent = healthCheckComponent;
this.healthCheckStatus = healthCheckStatus;
this.version = version;
this.description = description;
}
public MonitoredModules getHealthCheckComponent() {
return healthCheckComponent;
}
public void setHealthCheckComponent(MonitoredModules healthCheckComponent) {
this.healthCheckComponent = healthCheckComponent;
}
public HealthCheckStatus getHealthCheckStatus() {
return healthCheckStatus;
}
public void setHealthCheckStatus(HealthCheckStatus healthCheckStatus) {
this.healthCheckStatus = healthCheckStatus;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String toString() {
return "HealthInfo{" +
"healthCheckComponent='" + healthCheckComponent + '\'' +
", healthCheckStatus=" + healthCheckStatus +
", version='" + version + '\'' +
", description='" + description + '\'' +
'}';
}
}
|