Google Cloud Appengine Admin V1 Client - Class HealthCheck (1.0.6)

Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client 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.

Generated from protobuf message google.appengine.v1.HealthCheck

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ disable_health_check bool

Whether to explicitly disable health checks for this instance.

↳ host string

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

↳ healthy_threshold int

Number of consecutive successful health checks required before receiving traffic.

↳ unhealthy_threshold int

Number of consecutive failed health checks required before removing traffic.

↳ restart_threshold int

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

↳ check_interval Google\Protobuf\Duration

Interval between health checks.

↳ timeout Google\Protobuf\Duration

Time before the health check is considered failed.

getDisableHealthCheck

Whether to explicitly disable health checks for this instance.

Returns
TypeDescription
bool

setDisableHealthCheck

Whether to explicitly disable health checks for this instance.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getHost

Host header to send when performing an HTTP health check.

Example: "myapp.appspot.com"

Returns
TypeDescription
string

setHost

Host header to send when performing an HTTP health check.

Example: "myapp.appspot.com"

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getHealthyThreshold

Number of consecutive successful health checks required before receiving traffic.

Returns
TypeDescription
int

setHealthyThreshold

Number of consecutive successful health checks required before receiving traffic.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getUnhealthyThreshold

Number of consecutive failed health checks required before removing traffic.

Returns
TypeDescription
int

setUnhealthyThreshold

Number of consecutive failed health checks required before removing traffic.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRestartThreshold

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

Returns
TypeDescription
int

setRestartThreshold

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCheckInterval

Interval between health checks.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasCheckInterval

clearCheckInterval

setCheckInterval

Interval between health checks.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getTimeout

Time before the health check is considered failed.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasTimeout

clearTimeout

setTimeout

Time before the health check is considered failed.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this