Click or drag to resize
NewCheckConfiguration Constructor
This API is preliminary and subject to change.
Initializes a new instance of the NewCheckConfiguration class with the specified properties.

Namespace: net.openstack.Providers.Rackspace.Objects.Monitoring
Assembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax
public NewCheckConfiguration(
	string label,
	CheckTypeId checkTypeId,
	CheckDetails details,
	IEnumerable<MonitoringZoneId> monitoringZonesPoll,
	Nullable<TimeSpan> timeout,
	Nullable<TimeSpan> period,
	string targetAlias,
	string targetHostname,
	TargetResolverType resolverType,
	IDictionary<string, string> metadata
)

Parameters

label
Type: SystemString
The friendly name of the check. If this is , the label assigned to the new check is unspecified.
checkTypeId
Type: net.openstack.Providers.Rackspace.Objects.MonitoringCheckTypeId
The check type ID. This is obtained from CheckType.Id, or from the predefined values in CheckTypeId.
details
Type: net.openstack.Providers.Rackspace.Objects.MonitoringCheckDetails
A CheckDetails object containing detailed configuration information for the specific check type.
monitoringZonesPoll
Type: System.Collections.GenericIEnumerableMonitoringZoneId
A collection of MonitoringZoneId objects identifying the monitoring zones to poll from.
timeout
Type: SystemNullableTimeSpan
The timeout of a check operation. If this value is , a provider-specific default value is used.
period
Type: SystemNullableTimeSpan
The period between check operations. If this value is , a provider-specific default value is used.
targetAlias
Type: SystemString
The alias of the target for this check in the associated entity's IPAddresses map.
targetHostname
Type: SystemString
The hostname this check should target.
resolverType
Type: net.openstack.Providers.Rackspace.Objects.MonitoringTargetResolverType
The type of resolver to use for converting targetHostname to an IP address.
metadata
Type: System.Collections.GenericIDictionaryString, String
A collection of metadata to associate with the check. If this parameter is , the check is created without any custom metadata.
Exceptions
ExceptionCondition
ArgumentNullException If checkTypeId is .

-or-

If details is .

ArgumentException If label is non- but empty.

-or-

If the specified details object does support checks of type checkTypeId.

-or-

If checkTypeId is a remote check (i.e. the IsRemote property is ) and monitoringZonesPoll is or empty.

-or-

If checkTypeId is a remote check (i.e. the IsRemote property is ) and both targetAlias and targetHostname are .

-or-

If monitoringZonesPoll contains any values.

-or-

If period is less than or equal to timeout.

-or-

If targetAlias is non- but empty.

-or-

If targetHostname is non- but empty.

-or-

If metadata contains any empty keys, or any values.

ArgumentOutOfRangeException If timeout is less than or equal to Zero.

-or-

If period is less than or equal to Zero.

InvalidOperationException If targetAlias and targetHostname are both non-.
Version Information

.NET Framework

Supported in: 4.5

openstack.net

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