Interface CfnVirtualNode.IHealthCheckProperty
An object that represents the health check policy for a virtual node's listener.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IHealthCheckProperty
Syntax (vb)
Public Interface IHealthCheckProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;
var healthCheckProperty = new HealthCheckProperty {
HealthyThreshold = 123,
IntervalMillis = 123,
Protocol = "protocol",
TimeoutMillis = 123,
UnhealthyThreshold = 123,
// the properties below are optional
Path = "path",
Port = 123
};
Synopsis
Properties
HealthyThreshold | The number of consecutive successful health checks that must occur before declaring listener healthy. |
IntervalMillis | The time period in milliseconds between each health check execution. |
Path | The destination path for the health check request. |
Port | The destination port for the health check request. |
Protocol | The protocol for the health check request. |
TimeoutMillis | The amount of time to wait when receiving a response from the health check, in milliseconds. |
UnhealthyThreshold | The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy. |
Properties
HealthyThreshold
The number of consecutive successful health checks that must occur before declaring listener healthy.
double HealthyThreshold { get; }
Property Value
System.Double
Remarks
IntervalMillis
The time period in milliseconds between each health check execution.
double IntervalMillis { get; }
Property Value
System.Double
Remarks
Path
The destination path for the health check request.
virtual string Path { get; }
Property Value
System.String
Remarks
This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored.
Port
The destination port for the health check request.
virtual Nullable<double> Port { get; }
Property Value
System.Nullable<System.Double>
Remarks
This port must match the port defined in the PortMapping
for the listener.
Protocol
The protocol for the health check request.
string Protocol { get; }
Property Value
System.String
Remarks
If you specify grpc
, then your service must conform to the GRPC Health Checking Protocol .
TimeoutMillis
The amount of time to wait when receiving a response from the health check, in milliseconds.
double TimeoutMillis { get; }
Property Value
System.Double
Remarks
UnhealthyThreshold
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
double UnhealthyThreshold { get; }
Property Value
System.Double