@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.554Z") @Stability(value=Stable) public interface HttpHealthCheckOptions extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
Mesh mesh;
Vpc vpc = new Vpc(this, "vpc");
PrivateDnsNamespace namespace = PrivateDnsNamespace.Builder.create(this, "test-namespace")
.vpc(vpc)
.name("domain.local")
.build();
Service service = namespace.createService("Svc");
VirtualNode node = mesh.addVirtualNode("virtual-node", VirtualNodeBaseProps.builder()
.serviceDiscovery(ServiceDiscovery.cloudMap(service))
.listeners(List.of(VirtualNodeListener.http(HttpVirtualNodeListenerOptions.builder()
.port(8081)
.healthCheck(HealthCheck.http(HttpHealthCheckOptions.builder()
.healthyThreshold(3)
.interval(Duration.seconds(5)) // minimum
.path("/health-check-path")
.timeout(Duration.seconds(2)) // minimum
.unhealthyThreshold(2)
.build()))
.build())))
.accessLog(AccessLog.fromFilePath("/dev/stdout"))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpHealthCheckOptions.Builder
A builder for
HttpHealthCheckOptions |
static class |
HttpHealthCheckOptions.Jsii$Proxy
An implementation for
HttpHealthCheckOptions |
| Modifier and Type | Method and Description |
|---|---|
static HttpHealthCheckOptions.Builder |
builder() |
default Number |
getHealthyThreshold()
The number of consecutive successful health checks that must occur before declaring listener healthy.
|
default Duration |
getInterval()
The time period between each health check execution.
|
default String |
getPath()
The destination path for the health check request.
|
default Duration |
getTimeout()
The amount of time to wait when receiving a response from the health check.
|
default Number |
getUnhealthyThreshold()
The number of consecutive failed health checks that must occur before declaring a listener unhealthy.
|
@Stability(value=Stable) @Nullable default Number getHealthyThreshold()
Default: 2
@Stability(value=Stable) @Nullable default Duration getInterval()
Default: Duration.seconds(5)
@Stability(value=Stable) @Nullable default String getPath()
Default: /
@Stability(value=Stable) @Nullable default Duration getTimeout()
Default: Duration.seconds(2)
@Stability(value=Stable) @Nullable default Number getUnhealthyThreshold()
Default: - 2
@Stability(value=Stable) static HttpHealthCheckOptions.Builder builder()
HttpHealthCheckOptions.Builder of HttpHealthCheckOptionsCopyright © 2022. All rights reserved.