Interface LivenessCheckOrBuilder (2.4.0)

publicinterface LivenessCheckOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getCheckInterval()

publicabstractDurationgetCheckInterval()

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Returns
Type Description
Duration

The checkInterval.

getCheckIntervalOrBuilder()

publicabstractDurationOrBuildergetCheckIntervalOrBuilder()

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Returns
Type Description

getFailureThreshold()

publicabstractintgetFailureThreshold()

Number of consecutive failed checks required before considering the VM unhealthy.

uint32 failure_threshold = 3;

Returns
Type Description
int

The failureThreshold.

getHost()

publicabstractStringgetHost()

Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"

string host = 2;

Returns
Type Description
String

The host.

getHostBytes()

publicabstractByteStringgetHostBytes()

Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"

string host = 2;

Returns
Type Description
ByteString

The bytes for host.

getInitialDelay()

publicabstractDurationgetInitialDelay()

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Returns
Type Description
Duration

The initialDelay.

getInitialDelayOrBuilder()

publicabstractDurationOrBuildergetInitialDelayOrBuilder()

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Returns
Type Description

getPath()

publicabstractStringgetPath()

The request path.

string path = 1;

Returns
Type Description
String

The path.

getPathBytes()

publicabstractByteStringgetPathBytes()

The request path.

string path = 1;

Returns
Type Description
ByteString

The bytes for path.

getSuccessThreshold()

publicabstractintgetSuccessThreshold()

Number of consecutive successful checks required before considering the VM healthy.

uint32 success_threshold = 4;

Returns
Type Description
int

The successThreshold.

getTimeout()

publicabstractDurationgetTimeout()

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Returns
Type Description
Duration

The timeout.

getTimeoutOrBuilder()

publicabstractDurationOrBuildergetTimeoutOrBuilder()

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Returns
Type Description

hasCheckInterval()

publicabstractbooleanhasCheckInterval()

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Returns
Type Description
boolean

Whether the checkInterval field is set.

hasInitialDelay()

publicabstractbooleanhasInitialDelay()

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Returns
Type Description
boolean

Whether the initialDelay field is set.

hasTimeout()

publicabstractbooleanhasTimeout()

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

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.