Notification Type¶
A notification type is the definition of a situation that should be detected and acted upon. It is a governance definition - specifically a governance control - which means the reason a notification exists is traceable back to the governance driver or policy that called for it.
A notification type brings together three things:
- What to watch - the MonitoredResource relationship links the notification type to the metadata elements that need to be monitored in order to detect the situation.
- What the situation is - described by the notification type itself.
- Who needs to know - the NotificationSubscriber relationship links the notification type to the actors or actions that should be triggered when the situation arises.
Detecting the situation¶
Egeria's watchdog action services are the monitoring agents that detect changes in open metadata and evaluate them against the notification types. An external monitor can equally read these definitions and configure its own monitoring, which means the same notification definitions drive detection wherever it happens.
Situations that typically warrant a notification type include:
- The creation, update or deletion of a specific metadata element, or of any element of a particular type.
- The detection of an unauthorized user action.
- The completion of a process.
- The production of a particular type of audit log record.
- A timer expiring.
Acting on the situation¶
Each subscriber decides what happens next. The response may be to create a user notification or a to do for a person, to initiate a governance action process, to raise an incident report, to publish an event on a topic, or to call a remote API.
The NotificationSubscriber relationship is a multi-link relationship, so the same subscriber can hold several subscriptions to one notification type - typically with only one of them active at a time, and the others held in a different state ready to be switched on.
Controlling the flow of notifications¶
Left unchecked, a monitored situation that recurs frequently produces a flood of notifications that recipients quickly learn to ignore. The notification type therefore carries properties that shape the delivery:
- multipleNotificationsPermitted - whether more than one notification should be sent when the situation recurs. When it is false, each subscriber is notified once.
- minimumNotificationInterval - the shortest permitted gap between notifications, in minutes. Its effect depends on whether the notification type has monitored resources:
- With monitored resources, notifications are triggered by changes to those resources, and minimumNotificationInterval limits how often they are sent.
- Without monitored resources, the notification type is periodic: its subscribers are notified each time minimumNotificationInterval has passed.
- lastNotification - when the subscribers were last notified. It is the starting point for the next minimumNotificationInterval.
- nextScheduledNotification - for information only: the earliest time the next notification may be sent. It is not used to decide whether to send one.
- notificationCount - how many notifications have been triggered.
- plannedStartDate and plannedCompletionDate - the period during which the notification type is intended to be active. Nothing is sent before the planned start date. Once the planned completion date has passed, the notification type is made obsolete the next time it notifies its subscribers, and sends nothing more.
The notificationInterval property, deprecated in release 6.2, was removed in release 6.3.
Subscription types¶
A digital product's subscription types are notification types serviced by a subscription manager - by default, the Baudot Subscription Manager. The Product Manager API creates three kinds:
- One-time subscription types notify each subscriber once (multipleNotificationsPermitted is false).
- Periodic subscription types have no monitored resources, so they notify their subscribers each time minimumNotificationInterval passes.
- Ongoing update subscription types monitor resources, typically the product's asset, and notify their subscribers when one changes, no more often than minimumNotificationInterval.
An ongoing update subscription type is only registered with the subscription manager once it has at least one monitored resource. Without one, the subscription manager could not tell it from a periodic subscription type, and would notify its subscribers every time its interval passed. A product family's ongoing update subscription types monitor the product assets of the family's members, so they are registered once a member with a product asset has been catalogued.
Additional information
- The NotificationType type and its relationships are described in Model 0451 Notifications.
- The Notification Manager API provides the operations for maintaining notification types, their monitored resources and their subscribers.
Raise an issue or comment below