Skip to content

Commit

Permalink
[#39] Spring - Nestjs health check response 변경
Browse files Browse the repository at this point in the history
- dto 변경
- container환경에서의 domain 변경
  • Loading branch information
rdd9223 authored and yeseul106 committed Nov 28, 2023
1 parent 349cdb8 commit 651bfd9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class HealthService {
private final WebClient webClient;

public HealthService(WebClient.Builder webClientBuilder) {
this.webClient = webClientBuilder.baseUrl("http://localhost:3000").build();
this.webClient = webClientBuilder.baseUrl("http://nestjs:3000").build();
}

public ResponseEntity<HealthServiceGetHealthResponseDto> getHealth() {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
public class HealthServiceGetHealthResponseDataDto {
private String status;
private HealthServiceGetHealthResponseDataInfoDto info;
private HealthServiceGetHealthResponseDataErrorDto error;
private HealthServiceGetHealthResponseDataDetailsDto details;

// getters and setters
private HealthServiceGetHealthResponseDataInfoDto error;
private HealthServiceGetHealthResponseDataInfoDto details;
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
@Setter
@Schema(description = "services의 key는 EnHealthV1ServiceType, value는 서비스 상태")
public class HealthServiceGetHealthResponseDataInfoDto {
/**
* key는 서비스 타입, value는 서비스 상태
* - Key로는 EnHealthV1ServiceType을 사용한다.
*
* @see EnHealthV1ServiceType
*/
private Map<EnHealthV1ServiceType, HealthServiceGetHealthResponseDataStatusDto> services;
private HealthServiceGetHealthResponseDataStatusDto database;

Expand Down

0 comments on commit 651bfd9

Please sign in to comment.