diff options
author | 2019-12-05 16:42:48 +0000 | |
---|---|---|
committer | 2019-12-05 16:42:48 +0000 | |
commit | 36112574c3f506fe769ba2eed18a77f62c838467 (patch) | |
tree | 764fb2ce72816464a3190e7f5e4e38c07397863d /main/src/main | |
parent | 581aa3881e97c36faa23cd812a87d13bdc1a0054 (diff) | |
parent | 22fce245d748d59a980c9744ab8a133b9a4fa758 (diff) |
Merge "change HealthCheckReport URL from self to hostName"
Diffstat (limited to 'main/src/main')
-rw-r--r-- | main/src/main/java/org/onap/policy/api/main/rest/provider/HealthCheckProvider.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/main/src/main/java/org/onap/policy/api/main/rest/provider/HealthCheckProvider.java b/main/src/main/java/org/onap/policy/api/main/rest/provider/HealthCheckProvider.java index e59aee8b..a8edaa12 100644 --- a/main/src/main/java/org/onap/policy/api/main/rest/provider/HealthCheckProvider.java +++ b/main/src/main/java/org/onap/policy/api/main/rest/provider/HealthCheckProvider.java @@ -1,9 +1,10 @@ /*- * ============LICENSE_START======================================================= - * ONAP Policy API - * ================================================================================ + * ONAP Policy API + * ================================================================================ * Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved. * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2019 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,6 +26,7 @@ package org.onap.policy.api.main.rest.provider; import org.onap.policy.api.main.startstop.ApiActivator; import org.onap.policy.common.endpoints.report.HealthCheckReport; +import org.onap.policy.common.utils.network.NetworkUtil; /** * Class to fetch health check of api service. @@ -34,7 +36,7 @@ public class HealthCheckProvider { private static final String NOT_ALIVE = "not alive"; private static final String ALIVE = "alive"; - private static final String URL = "self"; + private static final String URL = NetworkUtil.getHostname(); private static final String NAME = "Policy API"; /** |