Merge "Logging improvements"
[vid.git] / vid-app-common / src / main / java / org / onap / vid / controller / HealthStatus.java
1 package org.onap.vid.controller;
2
3 import org.springframework.http.HttpStatus;
4
5 /**
6  * Model for JSON response with health-check results.
7  */
8 public final class HealthStatus {
9
10     private final int statusCode;
11     private final String detailedMsg;
12     private final String date;
13
14     public HealthStatus(HttpStatus code, String date, String detailedMsg) {
15         this.statusCode = code.value();
16         this.detailedMsg = detailedMsg;
17         this.date = date;
18     }
19
20     public int getStatusCode() {
21         return statusCode;
22     }
23
24     public String getDetailedMsg() {
25         return detailedMsg;
26     }
27
28     public String getDate() {
29         return date;
30     }
31 }