Class TCPHealthCheck (1.3.0)

public sealed class TCPHealthCheck : IMessage<TCPHealthCheck>, IEquatable<TCPHealthCheck>, IDeepCloneable<TCPHealthCheck>, IBufferMessage, IMessage

Inheritance

Object > TCPHealthCheck

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

TCPHealthCheck()

public TCPHealthCheck()

TCPHealthCheck(TCPHealthCheck)

public TCPHealthCheck(TCPHealthCheck other)
Parameter
NameDescription
otherTCPHealthCheck

Properties

HasPort

public bool HasPort { get; }

Gets whether the "port" field is set

Property Value
TypeDescription
Boolean

HasPortName

public bool HasPortName { get; }

Gets whether the "port_name" field is set

Property Value
TypeDescription
Boolean

HasPortSpecification

public bool HasPortSpecification { get; }

Gets whether the "port_specification" field is set

Property Value
TypeDescription
Boolean

HasProxyHeader

public bool HasProxyHeader { get; }

Gets whether the "proxy_header" field is set

Property Value
TypeDescription
Boolean

HasRequest

public bool HasRequest { get; }

Gets whether the "request" field is set

Property Value
TypeDescription
Boolean

HasResponse

public bool HasResponse { get; }

Gets whether the "response" field is set

Property Value
TypeDescription
Boolean

Port

public int Port { get; set; }

The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.

Property Value
TypeDescription
Int32

PortName

public string PortName { get; set; }

Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.

Property Value
TypeDescription
String

PortSpecification

public string PortSpecification { get; set; }

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.

Property Value
TypeDescription
String

ProxyHeader

public string ProxyHeader { get; set; }

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.

Property Value
TypeDescription
String

Request

public string Request { get; set; }

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.

Property Value
TypeDescription
String

Response

public string Response { get; set; }

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.

Property Value
TypeDescription
String