@Generated(value="jsii-pacmak/1.26.0 (build 7d76e02)", date="2021-03-25T11:29:25.709Z") @Stability(value=Experimental) public interface HealthCheck extends software.amazon.jsii.JsiiSerializable
All values have a default if only specified as {} when creating. If property not set, then no healthchecks will be defined.
| Modifier and Type | Interface and Description |
|---|---|
static class |
HealthCheck.Builder
A builder for
HealthCheck |
static class |
HealthCheck.Jsii$Proxy
An implementation for
HealthCheck |
| Modifier and Type | Method and Description |
|---|---|
static HealthCheck.Builder |
builder() |
default Number |
getHealthyThreshold()
(experimental) Number of successful attempts before considering the node UP.
|
default Duration |
getInterval()
(experimental) Interval in milliseconds to re-check.
|
default String |
getPath()
(experimental) The path where the application expects any health-checks, this can also be the application path.
|
default Number |
getPort()
(experimental) The TCP port number for the healthcheck.
|
default Protocol |
getProtocol()
(experimental) The protocol to use for the healthcheck, for convinience a const enum has been defined.
|
default Duration |
getTimeout()
(experimental) Timeout in milli-seconds for the healthcheck to be considered a fail.
|
default Number |
getUnhealthyThreshold()
(experimental) Number of failed attempts before considering the node DOWN.
|
@Stability(value=Experimental) @Nullable default Number getHealthyThreshold()
Default: 2
@Stability(value=Experimental) @Nullable default Duration getInterval()
Default: 5 seconds
@Stability(value=Experimental) @Nullable default String getPath()
Default: /
@Stability(value=Experimental) @Nullable default Number getPort()
Default: - same as corresponding port mapping
@Stability(value=Experimental) @Nullable default Protocol getProtocol()
Protocol.HTTP or Protocol.TCP
Default: - same as corresponding port mapping
@Stability(value=Experimental) @Nullable default Duration getTimeout()
Default: 2 seconds
@Stability(value=Experimental) @Nullable default Number getUnhealthyThreshold()
Default: 2
@Stability(value=Experimental) static HealthCheck.Builder builder()
HealthCheck.Builder of HealthCheckCopyright © 2021. All rights reserved.