public sealed class HealthCheck : IMessage<HealthCheck>, IEquatable<HealthCheck>, IDeepCloneable<HealthCheck>, IBufferMessage, IMessage
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()
HealthCheck(HealthCheck)
public HealthCheck(HealthCheck other)
Properties
CheckIntervalSec
public int CheckIntervalSec { get; set; }
How often (in seconds) to send a health check. The default value is 5 seconds.
Property Value |
---|
Type | Description |
Int32 | |
CreationTimestamp
public string CreationTimestamp { get; set; }
[Output Only] Creation timestamp in 3339 text format.
Property Value |
---|
Type | Description |
String | |
Description
public string Description { get; set; }
An optional description of this resource. Provide this property when you create the resource.
Property Value |
---|
Type | Description |
String | |
GrpcHealthCheck
public GRPCHealthCheck GrpcHealthCheck { get; set; }
HasCheckIntervalSec
public bool HasCheckIntervalSec { get; }
Gets whether the "check_interval_sec" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasCreationTimestamp
public bool HasCreationTimestamp { get; }
Gets whether the "creation_timestamp" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasDescription
public bool HasDescription { get; }
Gets whether the "description" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasHealthyThreshold
public bool HasHealthyThreshold { get; }
Gets whether the "healthy_threshold" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasId
public bool HasId { get; }
Gets whether the "id" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasKind
public bool HasKind { get; }
Gets whether the "kind" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasName
public bool HasName { get; }
Gets whether the "name" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasRegion
public bool HasRegion { get; }
Gets whether the "region" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasSelfLink
public bool HasSelfLink { get; }
Gets whether the "self_link" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasTimeoutSec
public bool HasTimeoutSec { get; }
Gets whether the "timeout_sec" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasType
public bool HasType { get; }
Gets whether the "type" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasUnhealthyThreshold
public bool HasUnhealthyThreshold { get; }
Gets whether the "unhealthy_threshold" field is set
Property Value |
---|
Type | Description |
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 |
---|
Type | Description |
Int32 | |
Http2HealthCheck
public HTTP2HealthCheck Http2HealthCheck { get; set; }
HttpHealthCheck
public HTTPHealthCheck HttpHealthCheck { get; set; }
HttpsHealthCheck
public HTTPSHealthCheck HttpsHealthCheck { get; set; }
Id
public ulong Id { get; set; }
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
Property Value |
---|
Type | Description |
UInt64 | |
Kind
public string Kind { get; set; }
Property Value |
---|
Type | Description |
String | |
LogConfig
public HealthCheckLogConfig LogConfig { get; set; }
Configure logging on this health check.
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 |
---|
Type | Description |
String | |
Region
public string Region { get; set; }
[Output Only] Region where the health check resides. Not applicable to global health checks.
Property Value |
---|
Type | Description |
String | |
SelfLink
public string SelfLink { get; set; }
[Output Only] Server-defined URL for the resource.
Property Value |
---|
Type | Description |
String | |
SslHealthCheck
public SSLHealthCheck SslHealthCheck { get; set; }
TcpHealthCheck
public TCPHealthCheck TcpHealthCheck { get; set; }
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 |
---|
Type | Description |
Int32 | |
Type
public string Type { get; set; }
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
Check the Type enum for the list of possible values.
Property Value |
---|
Type | Description |
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 |
---|
Type | Description |
Int32 | |