Click or drag to resize
NewNotificationPlanConfiguration Constructor
This API is preliminary and subject to change.
Initializes a new instance of the NewNotificationPlanConfiguration 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 NewNotificationPlanConfiguration(
	string label,
	IEnumerable<NotificationId> criticalState = null,
	IEnumerable<NotificationId> warningState = null,
	IEnumerable<NotificationId> okState = null,
	IDictionary<string, string> metadata = null
)

Parameters

label
Type: SystemString
The label for the notification plan.
criticalState (Optional)
Type: System.Collections.GenericIEnumerableNotificationId
The notification list to send to when the state is Critical. If this value is , notifications are not sent for this state.
warningState (Optional)
Type: System.Collections.GenericIEnumerableNotificationId
The notification list to send to when the state is Warning. If this value is , notifications are not sent for this state.
okState (Optional)
Type: System.Collections.GenericIEnumerableNotificationId
The notification list to send to when the state is OK. If this value is , notifications are not sent for this state.
metadata (Optional)
Type: System.Collections.GenericIDictionaryString, String
The metadata to associate with the notification plan. If this value is , no custom metadata is associated with the notification plan.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf label is .
ArgumentException If label is empty.

-or-

If criticalState contains any values.

-or-

If warningState contains any values.

-or-

If okState contains any values.

-or-

If metadata contains any empty keys.

Version Information

.NET Framework

Supported in: 4.5

openstack.net

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