forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SmallRyeHealthConfig.java
72 lines (60 loc) · 2.21 KB
/
SmallRyeHealthConfig.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package io.quarkus.smallrye.health.deployment;
import java.util.OptionalInt;
import io.quarkus.runtime.annotations.ConfigDocSection;
import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigRoot;
@ConfigRoot(name = "smallrye-health")
public class SmallRyeHealthConfig {
/**
* Root path for health-checking endpoints.
* By default, this value will be resolved as a path relative to `${quarkus.http.non-application-root-path}`.
*/
@ConfigItem(defaultValue = "health")
String rootPath;
/**
* The relative path of the liveness health-checking endpoint.
* By default, this value will be resolved as a path relative to `${quarkus.smallrye-health.rootPath}`.
*/
@ConfigItem(defaultValue = "live")
String livenessPath;
/**
* The relative path of the readiness health-checking endpoint.
* By default, this value will be resolved as a path relative to `${quarkus.smallrye-health.rootPath}`.
*/
@ConfigItem(defaultValue = "ready")
String readinessPath;
/**
* The relative path of the health group endpoint.
* By default, this value will be resolved as a path relative to `${quarkus.smallrye-health.rootPath}`.
*/
@ConfigItem(defaultValue = "group")
String groupPath;
/**
* The relative path of the wellness health-checking endpoint.
* By default, this value will be resolved as a path relative to `${quarkus.smallrye-health.rootPath}`.
*/
@ConfigItem(defaultValue = "well")
String wellnessPath;
/**
* The relative path of the startup health-checking endpoint.
* By default, this value will be resolved as a path relative to `${quarkus.smallrye-health.rootPath}`.
*/
@ConfigItem(defaultValue = "started")
String startupPath;
/**
* Whether the context should be propagated to each health check invocation.
*/
@ConfigItem(defaultValue = "false")
boolean contextPropagation;
/**
* The number of the maximum health groups that can be created.
*/
@ConfigItem
OptionalInt maxGroupRegistriesCount;
/**
* SmallRye Health UI configuration
*/
@ConfigItem
@ConfigDocSection
SmallRyeHealthUIConfig ui;
}