blob: 14372b5dec7b0b0d7e9aa8a2fb72b324e848dc27 (
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
|
package org.onap.vid.controller;
import org.springframework.http.HttpStatus;
/**
* Model for JSON response with health-check results.
*/
public final class HealthStatus {
private final int statusCode;
private final String detailedMsg;
private final String date;
public HealthStatus(HttpStatus code, String date, String detailedMsg) {
this.statusCode = code.value();
this.detailedMsg = detailedMsg;
this.date = date;
}
public int getStatusCode() {
return statusCode;
}
public String getDetailedMsg() {
return detailedMsg;
}
public String getDate() {
return date;
}
}
|