Interface HealthCheckOrBuilder (2.78.0)

publicinterface HealthCheckOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getCheckInterval()

publicabstractDurationgetCheckInterval()

Interval between health checks.

.google.protobuf.Duration check_interval = 6;

Returns
Type Description
Duration

The checkInterval.

getCheckIntervalOrBuilder()

publicabstractDurationOrBuildergetCheckIntervalOrBuilder()

Interval between health checks.

.google.protobuf.Duration check_interval = 6;

Returns
Type Description
DurationOrBuilder

getDisableHealthCheck()

publicabstractbooleangetDisableHealthCheck()

Whether to explicitly disable health checks for this instance.

bool disable_health_check = 1;

Returns
Type Description
boolean

The disableHealthCheck.

getHealthyThreshold()

publicabstractintgetHealthyThreshold()

Number of consecutive successful health checks required before receiving traffic.

uint32 healthy_threshold = 3;

Returns
Type Description
int

The healthyThreshold.

getHost()

publicabstractStringgetHost()

Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"

string host = 2;

Returns
Type Description
String

The host.

getHostBytes()

publicabstractByteStringgetHostBytes()

Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"

string host = 2;

Returns
Type Description
ByteString

The bytes for host.

getRestartThreshold()

publicabstractintgetRestartThreshold()

Number of consecutive failed health checks required before an instance is restarted.

uint32 restart_threshold = 5;

Returns
Type Description
int

The restartThreshold.

getTimeout()

publicabstractDurationgetTimeout()

Time before the health check is considered failed.

.google.protobuf.Duration timeout = 7;

Returns
Type Description
Duration

The timeout.

getTimeoutOrBuilder()

publicabstractDurationOrBuildergetTimeoutOrBuilder()

Time before the health check is considered failed.

.google.protobuf.Duration timeout = 7;

Returns
Type Description
DurationOrBuilder

getUnhealthyThreshold()

publicabstractintgetUnhealthyThreshold()

Number of consecutive failed health checks required before removing traffic.

uint32 unhealthy_threshold = 4;

Returns
Type Description
int

The unhealthyThreshold.

hasCheckInterval()

publicabstractbooleanhasCheckInterval()

Interval between health checks.

.google.protobuf.Duration check_interval = 6;

Returns
Type Description
boolean

Whether the checkInterval field is set.

hasTimeout()

publicabstractbooleanhasTimeout()

Time before the health check is considered failed.

.google.protobuf.Duration timeout = 7;

Returns
Type Description
boolean

Whether the timeout field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.