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