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| Modifier and Type | Class and Description |
|---|---|
static class |
HealthCheck.Builder
Health checking configuration for VM instances.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CHECK_INTERVAL_FIELD_NUMBER |
static int |
DISABLE_HEALTH_CHECK_FIELD_NUMBER |
static int |
HEALTHY_THRESHOLD_FIELD_NUMBER |
static int |
HOST_FIELD_NUMBER |
static int |
RESTART_THRESHOLD_FIELD_NUMBER |
static int |
TIMEOUT_FIELD_NUMBER |
static int |
UNHEALTHY_THRESHOLD_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Duration |
getCheckInterval()
Interval between health checks.
|
DurationOrBuilder |
getCheckIntervalOrBuilder()
Interval between health checks.
|
static HealthCheck |
getDefaultInstance() |
HealthCheck |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
boolean |
getDisableHealthCheck()
Whether to explicitly disable health checks for this instance.
|
int |
getHealthyThreshold()
Number of consecutive successful health checks required before receiving
traffic.
|
java.lang.String |
getHost()
Host header to send when performing an HTTP health check.
|
ByteString |
getHostBytes()
Host header to send when performing an HTTP health check.
|
Parser<HealthCheck> |
getParserForType() |
int |
getRestartThreshold()
Number of consecutive failed health checks required before an instance is
restarted.
|
int |
getSerializedSize() |
Duration |
getTimeout()
Time before the health check is considered failed.
|
DurationOrBuilder |
getTimeoutOrBuilder()
Time before the health check is considered failed.
|
int |
getUnhealthyThreshold()
Number of consecutive failed health checks required before removing
traffic.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
hasCheckInterval()
Interval between health checks.
|
int |
hashCode() |
boolean |
hasTimeout()
Time before the health check is considered failed.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static HealthCheck.Builder |
newBuilder() |
static HealthCheck.Builder |
newBuilder(HealthCheck prototype) |
HealthCheck.Builder |
newBuilderForType() |
protected HealthCheck.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static HealthCheck |
parseDelimitedFrom(java.io.InputStream input) |
static HealthCheck |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(byte[] data) |
static HealthCheck |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(java.nio.ByteBuffer data) |
static HealthCheck |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(ByteString data) |
static HealthCheck |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(CodedInputStream input) |
static HealthCheck |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(java.io.InputStream input) |
static HealthCheck |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<HealthCheck> |
parser() |
HealthCheck.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int DISABLE_HEALTH_CHECK_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER
public static final int HEALTHY_THRESHOLD_FIELD_NUMBER
public static final int UNHEALTHY_THRESHOLD_FIELD_NUMBER
public static final int RESTART_THRESHOLD_FIELD_NUMBER
public static final int CHECK_INTERVAL_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public boolean getDisableHealthCheck()
Whether to explicitly disable health checks for this instance.
bool disable_health_check = 1;getDisableHealthCheck in interface HealthCheckOrBuilderpublic java.lang.String getHost()
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
string host = 2;getHost in interface HealthCheckOrBuilderpublic ByteString getHostBytes()
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
string host = 2;getHostBytes in interface HealthCheckOrBuilderpublic int getHealthyThreshold()
Number of consecutive successful health checks required before receiving traffic.
uint32 healthy_threshold = 3;getHealthyThreshold in interface HealthCheckOrBuilderpublic int getUnhealthyThreshold()
Number of consecutive failed health checks required before removing traffic.
uint32 unhealthy_threshold = 4;getUnhealthyThreshold in interface HealthCheckOrBuilderpublic int getRestartThreshold()
Number of consecutive failed health checks required before an instance is restarted.
uint32 restart_threshold = 5;getRestartThreshold in interface HealthCheckOrBuilderpublic boolean hasCheckInterval()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;hasCheckInterval in interface HealthCheckOrBuilderpublic Duration getCheckInterval()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;getCheckInterval in interface HealthCheckOrBuilderpublic DurationOrBuilder getCheckIntervalOrBuilder()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;getCheckIntervalOrBuilder in interface HealthCheckOrBuilderpublic boolean hasTimeout()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;hasTimeout in interface HealthCheckOrBuilderpublic Duration getTimeout()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;getTimeout in interface HealthCheckOrBuilderpublic DurationOrBuilder getTimeoutOrBuilder()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;getTimeoutOrBuilder in interface HealthCheckOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static HealthCheck parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static HealthCheck parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static HealthCheck parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static HealthCheck parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static HealthCheck parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static HealthCheck parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static HealthCheck parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static HealthCheck parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static HealthCheck parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static HealthCheck parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static HealthCheck parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static HealthCheck parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic HealthCheck.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static HealthCheck.Builder newBuilder()
public static HealthCheck.Builder newBuilder(HealthCheck prototype)
public HealthCheck.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected HealthCheck.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static HealthCheck getDefaultInstance()
public static Parser<HealthCheck> parser()
public Parser<HealthCheck> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public HealthCheck getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder