Class HttpHealthCheck
Represents a legacy HTTP Health Check resource.
Legacy health checks are required by network load balancers. For more information, read Health Check Concepts.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.Compute.v1.Data
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class HttpHealthCheck : IDirectResponseSchema
Properties
CheckIntervalSec
How often (in seconds) to send a health check. The default value is 5 seconds.
Declaration
[JsonProperty("checkIntervalSec")]
public virtual int? CheckIntervalSec { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
CreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
Declaration
[JsonProperty("creationTimestamp")]
public virtual string CreationTimestamp { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Description
An optional description of this resource. Provide this property when you create the resource.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
HealthyThreshold
A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
Declaration
[JsonProperty("healthyThreshold")]
public virtual int? HealthyThreshold { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Host
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.
Declaration
[JsonProperty("host")]
public virtual string Host { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Id
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
Declaration
[JsonProperty("id")]
public virtual ulong? Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.UInt64> |
Kind
[Output Only] Type of the resource. Always compute#httpHealthCheck for HTTP health checks.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Name
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. Specifically, the name must be 1-63 characters long and match the
regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
and all following characters must be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Port
The TCP port number for the HTTP health check request. The default value is 80.
Declaration
[JsonProperty("port")]
public virtual int? Port { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
RequestPath
The request path of the HTTP health check request. The default value is /. This field does not support query parameters.
Declaration
[JsonProperty("requestPath")]
public virtual string RequestPath { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
SelfLink
[Output Only] Server-defined URL for the resource.
Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
TimeoutSec
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.
Declaration
[JsonProperty("timeoutSec")]
public virtual int? TimeoutSec { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
UnhealthyThreshold
A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
Declaration
[JsonProperty("unhealthyThreshold")]
public virtual int? UnhealthyThreshold { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |