NewNotificationConfiguration 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 NewNotificationConfiguration(
string label,
NotificationTypeId notificationTypeId,
NotificationDetails details,
IDictionary<string, string> metadata = null
)
Public Sub New (
label As String,
notificationTypeId As NotificationTypeId,
details As NotificationDetails,
Optional metadata As IDictionary(Of String, String) = Nothing
)
public:
NewNotificationConfiguration(
String^ label,
NotificationTypeId^ notificationTypeId,
NotificationDetails^ details,
IDictionary<String^, String^>^ metadata = nullptr
)
new :
label : string *
notificationTypeId : NotificationTypeId *
details : NotificationDetails *
?metadata : IDictionary<string, string>
(* Defaults:
let _metadata = defaultArg metadata null
*)
-> NewNotificationConfiguration
Parameters
- label
- Type: SystemString
The friendly name of the notification. - notificationTypeId
- Type: net.openstack.Providers.Rackspace.Objects.MonitoringNotificationTypeId
The notification type ID. This is obtained from NotificationType.Id, or from the predefined values in NotificationTypeId. - details
- Type: net.openstack.Providers.Rackspace.Objects.MonitoringNotificationDetails
A NotificationDetails object containing the detailed configuration properties for the specified notification type. - metadata (Optional)
- Type: System.Collections.GenericIDictionaryString, String
A collection of metadata to associate with the notification. If the value is , no custom metadata is associated with the notification.
Exceptions Exception | Condition |
---|
ArgumentNullException |
If label is .
-or- If details is . |
ArgumentException |
If label is empty.
-or- If details is non- and notificationTypeId is . -or- If details does not support notifications of type notificationTypeId. -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