public final class HealthCheck extends GeneratedMessageV3 implements HealthCheckOrBuilder
Health checking configuration for VM instances. Unhealthy instances
are killed and replaced with new instances. Only applicable for
instances in App Engine flexible environment.
Protobuf type google.appengine.v1.HealthCheck
Static Fields
CHECK_INTERVAL_FIELD_NUMBER
public static final int CHECK_INTERVAL_FIELD_NUMBER
Field Value
DISABLE_HEALTH_CHECK_FIELD_NUMBER
public static final int DISABLE_HEALTH_CHECK_FIELD_NUMBER
Field Value
HEALTHY_THRESHOLD_FIELD_NUMBER
public static final int HEALTHY_THRESHOLD_FIELD_NUMBER
Field Value
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER
Field Value
RESTART_THRESHOLD_FIELD_NUMBER
public static final int RESTART_THRESHOLD_FIELD_NUMBER
Field Value
TIMEOUT_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
Field Value
UNHEALTHY_THRESHOLD_FIELD_NUMBER
public static final int UNHEALTHY_THRESHOLD_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static HealthCheck getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static HealthCheck.Builder newBuilder()
Returns
newBuilder(HealthCheck prototype)
public static HealthCheck.Builder newBuilder(HealthCheck prototype)
Parameter
Returns
public static HealthCheck parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static HealthCheck parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static HealthCheck parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HealthCheck parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static HealthCheck parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HealthCheck parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HealthCheck parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static HealthCheck parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HealthCheck parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static HealthCheck parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static HealthCheck parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HealthCheck parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<HealthCheck> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCheckInterval()
public Duration getCheckInterval()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
Returns
Type | Description |
Duration | The checkInterval.
|
getCheckIntervalOrBuilder()
public DurationOrBuilder getCheckIntervalOrBuilder()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
Returns
getDefaultInstanceForType()
public HealthCheck getDefaultInstanceForType()
Returns
getDisableHealthCheck()
public boolean getDisableHealthCheck()
Whether to explicitly disable health checks for this instance.
bool disable_health_check = 1;
Returns
Type | Description |
boolean | The disableHealthCheck.
|
getHealthyThreshold()
public int getHealthyThreshold()
Number of consecutive successful health checks required before receiving
traffic.
uint32 healthy_threshold = 3;
Returns
Type | Description |
int | The healthyThreshold.
|
getHost()
Host header to send when performing an HTTP health check.
Example: "myapp.appspot.com"
string host = 2;
Returns
Type | Description |
String | The host.
|
getHostBytes()
public ByteString getHostBytes()
Host header to send when performing an HTTP health check.
Example: "myapp.appspot.com"
string host = 2;
Returns
getParserForType()
public Parser<HealthCheck> getParserForType()
Returns
Overrides
getRestartThreshold()
public int getRestartThreshold()
Number of consecutive failed health checks required before an instance is
restarted.
uint32 restart_threshold = 5;
Returns
Type | Description |
int | The restartThreshold.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTimeout()
public Duration getTimeout()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
Returns
getTimeoutOrBuilder()
public DurationOrBuilder getTimeoutOrBuilder()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
Returns
getUnhealthyThreshold()
public int getUnhealthyThreshold()
Number of consecutive failed health checks required before removing
traffic.
uint32 unhealthy_threshold = 4;
Returns
Type | Description |
int | The unhealthyThreshold.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasCheckInterval()
public boolean hasCheckInterval()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
Returns
Type | Description |
boolean | Whether the checkInterval field is set.
|
hasTimeout()
public boolean hasTimeout()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
Returns
Type | Description |
boolean | Whether the timeout field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public HealthCheck.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HealthCheck.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public HealthCheck.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions