aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/controllers/HealthStatus.java
blob: 6056c2898199dbeb96931c5dbd3fd65a970f1873 (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.controllers;

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;
    }
}