Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
a02c2d41
Commit
a02c2d41
authored
Jan 17, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the documentation of Health.Status constants
Closes gh-7784
parent
9695e0a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
OrderedHealthAggregator.java
...ramework/boot/actuate/health/OrderedHealthAggregator.java
+1
-1
Status.java
.../java/org/springframework/boot/actuate/health/Status.java
+7
-4
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+1
-1
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/OrderedHealthAggregator.java
View file @
a02c2d41
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/Status.java
View file @
a02c2d41
...
...
@@ -38,22 +38,25 @@ import org.springframework.util.ObjectUtils;
public
final
class
Status
{
/**
*
Convenient constant value representing
unknown state.
*
{@link Status} indicating that the component or subsystem is in an
unknown state.
*/
public
static
final
Status
UNKNOWN
=
new
Status
(
"UNKNOWN"
);
/**
* Convenient constant value representing up state.
* {@link Status} indicating that the component or subsystem is functioning as
* expected.
*/
public
static
final
Status
UP
=
new
Status
(
"UP"
);
/**
* Convenient constant value representing down state.
* {@link Status} indicating that the component or subsystem has suffered an
* unexpected failure.
*/
public
static
final
Status
DOWN
=
new
Status
(
"DOWN"
);
/**
* Convenient constant value representing out-of-service state.
* {@link Status} indicating that the component or subsystem has been taken out of
* service and should not be used.
*/
public
static
final
Status
OUT_OF_SERVICE
=
new
Status
(
"OUT_OF_SERVICE"
);
...
...
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
a02c2d41
...
...
@@ -1063,7 +1063,7 @@ content into your application; rather pick only the properties that you need.
management.health.rabbit.enabled=true # Enable RabbitMQ health check.
management.health.redis.enabled=true # Enable Redis health check.
management.health.solr.enabled=true # Enable Solr health check.
management.health.status.order=DOWN, OUT_OF_SERVICE, U
NKNOWN, UP
# Comma-separated list of health statuses in order of severity.
management.health.status.order=DOWN, OUT_OF_SERVICE, U
P, UNKNOWN
# Comma-separated list of health statuses in order of severity.
# INFO CONTRIBUTORS ({sc-spring-boot-actuator}/autoconfigure/InfoContributorProperties.{sc-ext}[InfoContributorProperties])
management.info.build.enabled=true # Enable build info.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment