diff --git a/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/health/GeoportalHealthCheck.java b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/health/GeoportalHealthCheck.java index 834dccb..09ca5fb 100644 --- a/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/health/GeoportalHealthCheck.java +++ b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/health/GeoportalHealthCheck.java @@ -17,8 +17,7 @@ public class GeoportalHealthCheck implements HealthCheck { @Override public HealthCheckResponse call() { log.info(GeoportalHealthCheck.class.getSimpleName() + " call"); - HealthCheckResponse response = HealthCheckResponse.named(SERVICE_NAME).state(true) - .withData("serviceStatus", "healthy").build(); + HealthCheckResponse response = HealthCheckResponse.named(SERVICE_NAME).state(true).build(); return response; } diff --git a/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/health/MongoHealthCheck.java b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/health/MongoHealthCheck.java index 4e88e51..9771096 100644 --- a/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/health/MongoHealthCheck.java +++ b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/health/MongoHealthCheck.java @@ -45,7 +45,7 @@ public class MongoHealthCheck implements HealthCheck { int i = 1; for (String coll : collections) { log.info("adding collection: {}", coll); - buildHCRBuilder.withData("collection " + i, coll); + buildHCRBuilder.withData("collection_" + i, coll); i++; } return buildHCRBuilder.build(); @@ -57,7 +57,7 @@ public class MongoHealthCheck implements HealthCheck { connection = mongo.getConnection(); buildHCRBuilder = appendMongoInfo(buildHCRBuilder, connection); } catch (Exception e1) { - buildHCRBuilder.withData("hosts ", connection.getHosts() + ""); + buildHCRBuilder.withData("hosts", connection.getHosts() + ""); } } @@ -69,7 +69,7 @@ public class MongoHealthCheck implements HealthCheck { private HealthCheckResponseBuilder appendMongoInfo(HealthCheckResponseBuilder buildHCRBuilder, MongoConnection connection) { - buildHCRBuilder.withData("hosts ", connection.getHosts() + ""); + buildHCRBuilder.withData("hosts", connection.getHosts() + ""); buildHCRBuilder.withData("db_name ", connection.getDatabase()); return buildHCRBuilder; }