Class HTTP2HealthCheck (1.5.0)

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

Attributes

NameDescription
host str
The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used. This field is a member of `oneof`_ ``_host``.
port int
The TCP port number for the health check request. The default value is 443. 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, HTTP2 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_path str
The request path of the HTTP/2 health check request. The default value is /. This field is a member of `oneof`_ ``_request_path``.
response str
The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII. This field is a member of `oneof`_ ``_response``.

Inheritance

builtins.object > proto.message.Message > HTTP2HealthCheck

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, HTTP2 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.