public sealed class HealthCheck : IMessage<HealthCheck>, IEquatable<HealthCheck>, IDeepCloneable<HealthCheck>, IBufferMessage, IMessage
Reference documentation and code samples for the App Engine v1 API class HealthCheck.
Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment.
Implements
IMessageHealthCheck, IEquatableHealthCheck, IDeepCloneableHealthCheck, IBufferMessage, IMessageNamespace
Google.Cloud.AppEngine.V1Assembly
Google.Cloud.AppEngine.V1.dll
Constructors
HealthCheck()
public HealthCheck()
HealthCheck(HealthCheck)
public HealthCheck(HealthCheck other)
Parameter | |
---|---|
Name | Description |
other | HealthCheck |
Properties
CheckInterval
public Duration CheckInterval { get; set; }
Interval between health checks.
Property Value | |
---|---|
Type | Description |
Duration |
DisableHealthCheck
public bool DisableHealthCheck { get; set; }
Whether to explicitly disable health checks for this instance.
Property Value | |
---|---|
Type | Description |
bool |
HealthyThreshold
public uint HealthyThreshold { get; set; }
Number of consecutive successful health checks required before receiving traffic.
Property Value | |
---|---|
Type | Description |
uint |
Host
public string Host { get; set; }
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
Property Value | |
---|---|
Type | Description |
string |
RestartThreshold
public uint RestartThreshold { get; set; }
Number of consecutive failed health checks required before an instance is restarted.
Property Value | |
---|---|
Type | Description |
uint |
Timeout
public Duration Timeout { get; set; }
Time before the health check is considered failed.
Property Value | |
---|---|
Type | Description |
Duration |
UnhealthyThreshold
public uint UnhealthyThreshold { get; set; }
Number of consecutive failed health checks required before removing traffic.
Property Value | |
---|---|
Type | Description |
uint |