Class HealthCheckHttp2HealthCheck


  • public final class HealthCheckHttp2HealthCheck
    extends java.lang.Object
    • Method Detail

      • host

        public java.util.Optional<java.lang.String> host()
        Returns:
        The value of the host header in the HTTP health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
      • port

        public java.util.Optional<java.lang.Integer> port()
        Returns:
        The port number for the health check request. Must be specified if portName and portSpecification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.
      • portName

        public java.util.Optional<java.lang.String> portName()
        Returns:
        Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
      • portSpecification

        public java.util.Optional<java.lang.String> portSpecification()
        Returns:
        Specifies how port is selected for health checking, can be one of the following values:
      • proxyHeader

        public java.util.Optional<java.lang.String> proxyHeader()
        Returns:
        Specifies the type of proxy header to append before sending data to the backend. Default value is `NONE`. Possible values are: `NONE`, `PROXY_V1`.
      • requestPath

        public java.util.Optional<java.lang.String> requestPath()
        Returns:
        The request path of the HTTP health check request. The default value is /.
      • response

        public java.util.Optional<java.lang.String> response()
        Returns:
        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.