NotificationService.createNotification Method

Creates a notification with the provided information.
 

Parameters

notificationKind

Type: NotificationKind
The kind of notification.
name

Type: String
The name of the notification.
description

Type: String
The description of the notification.
contentItems

Type: array
ElementType: NotificationContent
The notification content items.
scheduleRule

Type: ScheduleRule
The schedule rule used for the delivery of the notification.
deliverySettings

Type: DeliverySettings
The delivery settings.
conditions

Type: Array
ElementType: DataDrivenCondition
The notification conditions.
conditionsOperator

Type: LogicalOperator
Gets or sets the logical operator, when multiple conditions are defined within.
metricSetId

Type: String
The ID of the metric set to create annotation notification on.
runImmediately

Type: Boolean
Gets or sets a value indicating whether or not the notification should be run immediately.
accountId

Type: String
(optional) The ID of the account to create the notification on.
Optional: True
maintainerId

Type: String
(optional) The ID of the account to notify on failure.
Optional: True

Return Value


Type: jQuery.Promise
Value: dundas.notifications.Notification
A promise object that is resolved when the call is complete. If successful, a dundas.notifications.Notification object is returned.