Class TCPHealthCheck

TCPHealthCheck(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

NameDescription
port int
The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535. This field is a member of `oneof`_ ``_port``.
port_name str
Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. This field is a member of `oneof`_ ``_port_name``.
port_specification str
Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in port and portName fields. Check the PortSpecification enum for the list of possible values. This field is a member of `oneof`_ ``_port_specification``.
proxy_header str
Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Check the ProxyHeader enum for the list of possible values. This field is a member of `oneof`_ ``_proxy_header``.
request str
The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII. This field is a member of `oneof`_ ``_request``.
response str
The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. This field is a member of `oneof`_ ``_response``.

Inheritance

builtins.object > proto.message.Message > TCPHealthCheck

Classes

PortSpecification

PortSpecification(value)

Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in port and portName fields.

ProxyHeader

ProxyHeader(value)

Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.