Acknowledge the alarm condition of the notification with the supplied identifier.
Sets status.acknowledged = true
Removes sound from method
Note: Calling this method on a Notifications with a status of canAcknowledge = false will throw an Error
Notification identifier.
NotificationManagerDisabledError when core notification
management is disabled (notifications.manageNotifications = false).
Acknowledges all notifications.
NotificationManagerDisabledError when core notification
management is disabled (notifications.manageNotifications = false).
Clears the alarm from the notification with the supplied identifier
by setting state = normal
Note: Calling this method on a Notifications with a status of canClear = false will throw an Error
Notification identifier.
NotificationManagerDisabledError when core notification
management is disabled (notifications.manageNotifications = false).
Retrieve the notification with the supplied identifier.
Notification identifier.
NotificationManagerDisabledError when core notification
management is disabled (notifications.manageNotifications = false).
Retrieve the notification(s) with the supplied path.
When core notification management is disabled, entries are read from the
data model (self context only): values carry no core-side status, keys
are the source-supplied value.id when present (otherwise the
notification path), and matching is by subtree (path prefix) rather than
exact path.
Notification path.
Retrieve a list notifications keyed by identifier.
When core notification management is disabled, entries are read from the
data model (self context only): values carry no core-side status, and
keys are the source-supplied value.id when present, otherwise the
notification path.
Raise a Person Overboard (MOB) notification.
Optionalmessage: string
Message to display or speak.
Notification Identifier
Raises a new notification and assigns an identifier.
Alarm options.
Notification Identifier
app.notifications.raise({
state: 'warn',
message: 'Port engine temperature is higher than normal.'
})
// path = `notifications.{notificationId}`
app.notifications.raise({
state: 'warn',
message: 'Port engine temperature is higher than normal.',
path: 'propulsion.port.temperature'
})
app.notifications.raise({
state: 'warn',
message: 'Port engine temperature is higher than normal.',
path: 'propulsion.port.temperature',
idInPath: true
})
// path = `notifications.propulsion.port.temperature.{notificationId}`
Note: when core notification management is disabled
(notifications.manageNotifications = false), path is required — there
is no notifications.{notificationId} fallback — and a plain Error is
thrown if it is missing. The returned id is embedded in the emitted value
but not tracked by the server. context is ignored: the notification is
emitted for the self context, matching managed-mode emission.
Silence the alarm of the notification with the supplied identifier.
Sets status.silenced = true
Removes sound from method
Note: Calling this method on a Notifications with a status of canSilence = false will throw an Error
Notification identifier.
NotificationManagerDisabledError when core notification
management is disabled (notifications.manageNotifications = false).
Silences all notifications.
NotificationManagerDisabledError when core notification
management is disabled (notifications.manageNotifications = false).
Update the notification with the supplied identifier.
Notification identifier.
Alarm options.
NotificationManagerDisabledError when core notification
management is disabled (notifications.manageNotifications = false).
Plugin interface functions.
See
Notifications REST API for further details.