Skip to content

Commit 7a49651

Browse files
dreis2211snicoll
authored andcommitted
Remove management.health.status.order from docs
See gh-18170
1 parent 14a6760 commit 7a49651

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthProperties.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.util.Set;
2424

2525
import org.springframework.boot.actuate.health.HealthEndpoint;
26+
import org.springframework.boot.context.properties.NestedConfigurationProperty;
2627

2728
/**
2829
* Properties used to configure the health endpoint and endpoint groups.
@@ -33,6 +34,7 @@
3334
*/
3435
public abstract class HealthProperties {
3536

37+
@NestedConfigurationProperty
3638
private final Status status = new Status();
3739

3840
/**

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@
2828
"name": "management.endpoint.health.show-details",
2929
"defaultValue": "never"
3030
},
31+
{
32+
"name": "management.endpoint.health.status.order",
33+
"defaultValue": [
34+
"DOWN",
35+
"OUT_OF_SERVICE",
36+
"UP",
37+
"UNKNOWN"
38+
]
39+
},
3140
{
3241
"name": "management.endpoints.enabled-by-default",
3342
"type": "java.lang.Boolean",
@@ -162,7 +171,10 @@
162171
"OUT_OF_SERVICE",
163172
"UP",
164173
"UNKNOWN"
165-
]
174+
],
175+
"deprecation": {
176+
"replacement": "management.endpoint.health.status.order"
177+
}
166178
},
167179
{
168180
"name": "management.health.mail.enabled",

0 commit comments

Comments
 (0)