aboutsummaryrefslogtreecommitdiffstats
path: root/sources/hv-collector-health-check/src
diff options
context:
space:
mode:
authorPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2019-01-23 09:51:50 +0100
committerPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2019-01-29 11:36:27 +0100
commit40993732b302ce43ae1dbedbda44cc0113e9b6f2 (patch)
tree6a96edef6be6483ac4d2d5719978d44b897197cc /sources/hv-collector-health-check/src
parent68a3cf84da13b6f97628c8a0cee86c3323c780ce (diff)
Change Health Status when shutting down
Change-Id: I889c934f29d34c1211c6e07f18cb16bbe35d711f Issue-ID: DCAEGEN2-1065 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Diffstat (limited to 'sources/hv-collector-health-check/src')
-rw-r--r--sources/hv-collector-health-check/src/main/kotlin/org/onap/dcae/collectors/veshv/healthcheck/api/HealthDescription.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/hv-collector-health-check/src/main/kotlin/org/onap/dcae/collectors/veshv/healthcheck/api/HealthDescription.kt b/sources/hv-collector-health-check/src/main/kotlin/org/onap/dcae/collectors/veshv/healthcheck/api/HealthDescription.kt
index 4758fb6b..21f8da5b 100644
--- a/sources/hv-collector-health-check/src/main/kotlin/org/onap/dcae/collectors/veshv/healthcheck/api/HealthDescription.kt
+++ b/sources/hv-collector-health-check/src/main/kotlin/org/onap/dcae/collectors/veshv/healthcheck/api/HealthDescription.kt
@@ -28,6 +28,7 @@ enum class HealthDescription(val message: String, val status: HealthStatus) {
STARTING("Component is starting", HealthStatus.OUT_OF_SERVICE),
HEALTHY("Healthy", HealthStatus.UP),
BUSY("Processing at least one request", HealthStatus.UP),
+ SHUTTING_DOWN("Component is scheduled to shut down", HealthStatus.DOWN),
IDLE("No simulation is in progress at the moment", HealthStatus.UP),
/* Configuration related */
RETRYING_FOR_DYNAMIC_CONFIGURATION("Dynamic configuration not available. Retrying.", HealthStatus.OUT_OF_SERVICE),