-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7fc2fbe
commit 85e6d7d
Showing
3 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 3 additions & 10 deletions
13
src/main/java/uk/gov/hmcts/reform/authorisation/healthcheck/InternalHealth.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,22 @@ | ||
package uk.gov.hmcts.reform.authorisation.healthcheck; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import org.springframework.boot.actuate.health.Status; | ||
|
||
import java.util.Map; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class InternalHealth { | ||
private final Status status; | ||
private final Map<String, Object> details; | ||
|
||
@JsonCreator | ||
public InternalHealth( | ||
@JsonProperty("status") Status status, | ||
@JsonProperty("details") Map<String, Object> details | ||
@JsonProperty("status") Status status | ||
) { | ||
this.status = status; | ||
this.details = details; | ||
} | ||
|
||
public Status getStatus() { | ||
return status; | ||
} | ||
|
||
public Map<String, Object> getDetails() { | ||
return details; | ||
} | ||
} |