Class HTTPHealthCheck (1.3.0)

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

Inheritance

Object > HTTPHealthCheck

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

HTTPHealthCheck()

public HTTPHealthCheck()

HTTPHealthCheck(HTTPHealthCheck)

public HTTPHealthCheck(HTTPHealthCheck other)
Parameter
NameDescription
otherHTTPHealthCheck

Properties

HasHost

public bool HasHost { get; }

Gets whether the "host" field is set

Property Value
TypeDescription
Boolean

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

HasRequestPath

public bool HasRequestPath { get; }

Gets whether the "request_path" field is set

Property Value
TypeDescription
Boolean

HasResponse

public bool HasResponse { get; }

Gets whether the "response" field is set

Property Value
TypeDescription
Boolean

Host

public string Host { get; set; }

The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.

Property Value
TypeDescription
String

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, HTTP 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

RequestPath

public string RequestPath { get; set; }

The request path of the HTTP health check request. The default value is /.

Property Value
TypeDescription
String

Response

public string Response { get; set; }

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.

Property Value
TypeDescription
String