NewNotificationPlanConfiguration Constructor |
This API is preliminary and subject to change.
Namespace: net.openstack.Providers.Rackspace.Objects.MonitoringAssembly: 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
)
Public Sub New (
label As String,
Optional criticalState As IEnumerable(Of NotificationId) = Nothing,
Optional warningState As IEnumerable(Of NotificationId) = Nothing,
Optional okState As IEnumerable(Of NotificationId) = Nothing,
Optional metadata As IDictionary(Of String, String) = Nothing
)
public:
NewNotificationPlanConfiguration(
String^ label,
IEnumerable<NotificationId^>^ criticalState = nullptr,
IEnumerable<NotificationId^>^ warningState = nullptr,
IEnumerable<NotificationId^>^ okState = nullptr,
IDictionary<String^, String^>^ metadata = nullptr
)
new :
label : string *
?criticalState : IEnumerable<NotificationId> *
?warningState : IEnumerable<NotificationId> *
?okState : IEnumerable<NotificationId> *
?metadata : IDictionary<string, string>
(* Defaults:
let _criticalState = defaultArg criticalState null
let _warningState = defaultArg warningState null
let _okState = defaultArg okState null
let _metadata = defaultArg metadata null
*)
-> NewNotificationPlanConfiguration
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 Exception | Condition |
---|
ArgumentNullException | If 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