Class HealthChecker
The health check policy configuration. For more information, see Editing Health Check Policies.
Inherited Members
Namespace: Oci.LoadbalancerService.Models
Assembly: OCI.DotNetSDK.Loadbalancer.dll
Syntax
public class HealthChecker
Properties
IntervalInMillis
Declaration
[JsonProperty(PropertyName = "intervalInMillis")]
public int? IntervalInMillis { get; set; }
Property Value
Type | Description |
---|---|
int? | The interval between health checks, in milliseconds. The default is 10000 (10 seconds).
|
IsForcePlainText
Declaration
[JsonProperty(PropertyName = "isForcePlainText")]
public bool? IsForcePlainText { get; set; }
Property Value
Type | Description |
---|---|
bool? | Specifies if health checks should always be done using plain text instead of depending on
whether or not the associated backend set is using SSL.
|
Port
Declaration
[Required(ErrorMessage = "Port is required.")]
[JsonProperty(PropertyName = "port")]
public int? Port { get; set; }
Property Value
Type | Description |
---|---|
int? | The backend server port against which to run the health check. If the port is not specified, the load balancer uses the
port information from the |
Remarks
Required
Protocol
Declaration
[Required(ErrorMessage = "Protocol is required.")]
[JsonProperty(PropertyName = "protocol")]
public string Protocol { get; set; }
Property Value
Type | Description |
---|---|
string | The protocol the health check must use; either HTTP or TCP.
|
Remarks
Required
ResponseBodyRegex
Declaration
[Required(ErrorMessage = "ResponseBodyRegex is required.")]
[JsonProperty(PropertyName = "responseBodyRegex")]
public string ResponseBodyRegex { get; set; }
Property Value
Type | Description |
---|---|
string | A regular expression for parsing the response body from the backend server.
|
Remarks
Required
Retries
Declaration
[JsonProperty(PropertyName = "retries")]
public int? Retries { get; set; }
Property Value
Type | Description |
---|---|
int? | The number of retries to attempt before a backend server is considered "unhealthy". This number also applies
when recovering a server to the "healthy" state. Defaults to 3.
|
ReturnCode
Declaration
[Required(ErrorMessage = "ReturnCode is required.")]
[JsonProperty(PropertyName = "returnCode")]
public int? ReturnCode { get; set; }
Property Value
Type | Description |
---|---|
int? | The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol,
you can use common HTTP status codes such as "200".
|
Remarks
Required
TimeoutInMillis
Declaration
[JsonProperty(PropertyName = "timeoutInMillis")]
public int? TimeoutInMillis { get; set; }
Property Value
Type | Description |
---|---|
int? | The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply
returns within this timeout period. Defaults to 3000 (3 seconds).
|
UrlPath
Declaration
[JsonProperty(PropertyName = "urlPath")]
public string UrlPath { get; set; }
Property Value
Type | Description |
---|---|
string | The path against which to run the health check.
|