Compute Engine v1 API - Class HealthCheck (2.3.0)

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

Reference documentation and code samples for the Compute Engine v1 API class HealthCheck.

Represents a Health Check resource. Google Compute Engine has two Health Check resources: * Global * Regional Internal HTTP(S) load balancers must use regional health checks (compute.v1.regionHealthChecks). Traffic Director must use global health checks (compute.v1.HealthChecks). Internal TCP/UDP load balancers can use either regional or global health checks (compute.v1.regionHealthChecks or compute.v1.HealthChecks). External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (compute.v1.HealthChecks). Backend service-based network load balancers must use regional health checks (compute.v1.regionHealthChecks). Target pool-based network load balancers must use legacy HTTP health checks (compute.v1.httpHealthChecks). For more information, see Health checks overview.

Inheritance

Object > HealthCheck

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

HealthCheck()

public HealthCheck()

HealthCheck(HealthCheck)

public HealthCheck(HealthCheck other)
Parameter
NameDescription
otherHealthCheck

Properties

CheckIntervalSec

public int CheckIntervalSec { get; set; }

How often (in seconds) to send a health check. The default value is 5 seconds.

Property Value
TypeDescription
Int32

CreationTimestamp

public string CreationTimestamp { get; set; }

[Output Only] Creation timestamp in 3339 text format.

Property Value
TypeDescription
String

Description

public string Description { get; set; }

An optional description of this resource. Provide this property when you create the resource.

Property Value
TypeDescription
String

GrpcHealthCheck

public GRPCHealthCheck GrpcHealthCheck { get; set; }
Property Value
TypeDescription
GRPCHealthCheck

HasCheckIntervalSec

public bool HasCheckIntervalSec { get; }

Gets whether the "check_interval_sec" field is set

Property Value
TypeDescription
Boolean

HasCreationTimestamp

public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

Property Value
TypeDescription
Boolean

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
Boolean

HasHealthyThreshold

public bool HasHealthyThreshold { get; }

Gets whether the "healthy_threshold" field is set

Property Value
TypeDescription
Boolean

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
TypeDescription
Boolean

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
TypeDescription
Boolean

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
Boolean

HasRegion

public bool HasRegion { get; }

Gets whether the "region" field is set

Property Value
TypeDescription
Boolean
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
TypeDescription
Boolean

HasTimeoutSec

public bool HasTimeoutSec { get; }

Gets whether the "timeout_sec" field is set

Property Value
TypeDescription
Boolean

HasType

public bool HasType { get; }

Gets whether the "type" field is set

Property Value
TypeDescription
Boolean

HasUnhealthyThreshold

public bool HasUnhealthyThreshold { get; }

Gets whether the "unhealthy_threshold" field is set

Property Value
TypeDescription
Boolean

HealthyThreshold

public int HealthyThreshold { get; set; }

A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.

Property Value
TypeDescription
Int32

Http2HealthCheck

public HTTP2HealthCheck Http2HealthCheck { get; set; }
Property Value
TypeDescription
HTTP2HealthCheck

HttpHealthCheck

public HTTPHealthCheck HttpHealthCheck { get; set; }
Property Value
TypeDescription
HTTPHealthCheck

HttpsHealthCheck

public HTTPSHealthCheck HttpsHealthCheck { get; set; }
Property Value
TypeDescription
HTTPSHealthCheck

Id

public ulong Id { get; set; }

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Property Value
TypeDescription
UInt64

Kind

public string Kind { get; set; }

Type of the resource.

Property Value
TypeDescription
String

LogConfig

public HealthCheckLogConfig LogConfig { get; set; }

Configure logging on this health check.

Property Value
TypeDescription
HealthCheckLogConfig

Name

public string Name { get; set; }

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. For example, a name that is 1-63 characters long, matches the regular expression [a-z]([-a-z0-9]*[a-z0-9])?, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn't a dash.

Property Value
TypeDescription
String

Region

public string Region { get; set; }

[Output Only] Region where the health check resides. Not applicable to global health checks.

Property Value
TypeDescription
String
public string SelfLink { get; set; }

[Output Only] Server-defined URL for the resource.

Property Value
TypeDescription
String

SslHealthCheck

public SSLHealthCheck SslHealthCheck { get; set; }
Property Value
TypeDescription
SSLHealthCheck

TcpHealthCheck

public TCPHealthCheck TcpHealthCheck { get; set; }
Property Value
TypeDescription
TCPHealthCheck

TimeoutSec

public int TimeoutSec { get; set; }

How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.

Property Value
TypeDescription
Int32

Type

public string Type { get; set; }

Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC. Exactly one of the protocol-specific health check fields must be specified, which must match type field. Check the Type enum for the list of possible values.

Property Value
TypeDescription
String

UnhealthyThreshold

public int UnhealthyThreshold { get; set; }

A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.

Property Value
TypeDescription
Int32