Polish
See gh-37984
This commit is contained in:
committed by
Moritz Halbritter
parent
6b8c340de0
commit
b5d4983829
@@ -32,13 +32,11 @@ class MyHealthMetricsExportConfiguration(registry: MeterRegistry, healthEndpoint
|
||||
}.strongReference(true).register(registry)
|
||||
}
|
||||
|
||||
private fun getStatusCode(health: HealthEndpoint): Int {
|
||||
return when (health.health().status) {
|
||||
Status.UP -> 3
|
||||
Status.OUT_OF_SERVICE -> 2
|
||||
Status.DOWN -> 1
|
||||
else -> 0
|
||||
}
|
||||
private fun getStatusCode(health: HealthEndpoint) = when (health.health().status) {
|
||||
Status.UP -> 3
|
||||
Status.OUT_OF_SERVICE -> 2
|
||||
Status.DOWN -> 1
|
||||
else -> 0
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user