Click or drag to resize
WebServerHealthMonitor Constructor (Boolean, Int32, TimeSpan, TimeSpan, String, String, String)
This API is preliminary and subject to change.
Initializes a new instance of the WebServerHealthMonitor class with the specified values.

Namespace: net.openstack.Providers.Rackspace.Objects.LoadBalancers
Assembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax
public WebServerHealthMonitor(
	bool https,
	int attemptsBeforeDeactivation,
	TimeSpan timeout,
	TimeSpan delay,
	string bodyRegex,
	string path,
	string statusRegex
)

Parameters

https
Type: SystemBoolean
to monitor HTTPS connections; otherwise, to monitor HTTP connections.
attemptsBeforeDeactivation
Type: SystemInt32
The number of permissible monitor failures before removing a node from rotation.
timeout
Type: SystemTimeSpan
The maximum number of seconds to wait for a connection to be established before timing out.
delay
Type: SystemTimeSpan
The minimum time to wait before executing the health monitor.
bodyRegex
Type: SystemString
A regular expression that will be used to evaluate the contents of the body of the response.
path
Type: SystemString
The HTTP path that will be used in the sample request.
statusRegex
Type: SystemString
A regular expression that will be used to evaluate the HTTP status code returned in the response.
Exceptions
ExceptionCondition
ArgumentNullException If bodyRegex is .

-or-

If path is .

-or-

If statusRegex is .

ArgumentException If bodyRegex is empty.

-or-

If path is empty.

-or-

If statusRegex is empty.

ArgumentOutOfRangeException If attemptsBeforeDeactivation is less than or equal to 0.

-or-

If timeout is negative or Zero.

-or-

If delay is negative or Zero.

Version Information

.NET Framework

Supported in: 4.5

openstack.net

Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also