Updated documentation for REST health check and changed method name
This commit is contained in:
@ -14,15 +14,7 @@ import org.springframework.web.client.RestTemplate;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* A Healtcheck which checks if the rest services are working.
|
||||
*
|
||||
* If you have a complex service behind grpc, you should think about an easy greeting or echo service, which only tests
|
||||
* the network/service stack and not the full application.
|
||||
*
|
||||
* The healthcheck will be called by kubernetes to check if the container/pod shuold be in loadbalancing. It is possible
|
||||
* to have as much healthchecks as you loke.
|
||||
*
|
||||
* There should be a healtcheck which is ok not before all data is loaded.
|
||||
* A Health check which checks if the rest services are working.]
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
@ -55,7 +47,7 @@ public class RestHealthCheck extends AbstractHealthCheck implements HealthIndica
|
||||
|
||||
@Override
|
||||
String getMethodName() {
|
||||
return "infodb-rest";
|
||||
return "template-service-rest";
|
||||
}
|
||||
|
||||
String mkEndpoint() {
|
||||
|
||||
Reference in New Issue
Block a user